<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://stalkerin.gameru.net/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://stalkerin.gameru.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=109.74.221.248&amp;*</id>
		<title>S.T.A.L.K.E.R. Inside Wiki - Вклад участника [ru]</title>
		<link rel="self" type="application/atom+xml" href="http://stalkerin.gameru.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=109.74.221.248&amp;*"/>
		<link rel="alternate" type="text/html" href="http://stalkerin.gameru.net/wiki/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%BA%D0%BB%D0%B0%D0%B4/109.74.221.248"/>
		<updated>2026-06-14T14:22:00Z</updated>
		<subtitle>Вклад участника</subtitle>
		<generator>MediaWiki 1.22.6</generator>

	<entry>
		<id>http://stalkerin.gameru.net/wiki/index.php?title=LevelEditor._%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D1%81%D1%86%D0%B5%D0%BD%D1%8B</id>
		<title>LevelEditor. Настройка сцены</title>
		<link rel="alternate" type="text/html" href="http://stalkerin.gameru.net/wiki/index.php?title=LevelEditor._%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D1%81%D1%86%D0%B5%D0%BD%D1%8B"/>
				<updated>2011-03-30T17:05:57Z</updated>
		
		<summary type="html">&lt;p&gt;109.74.221.248: Отмена правки 9717 участника 50.56.91.221 (обсуждение)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#перенаправление [[DCT:LevelEditor. Введение]]&lt;/div&gt;</summary>
		<author><name>109.74.221.248</name></author>	</entry>

	<entry>
		<id>http://stalkerin.gameru.net/wiki/index.php?title=SoC._%D0%9A%D1%80%D0%B8%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B5_%D1%80%D0%B0%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5</id>
		<title>SoC. Критическое ранение</title>
		<link rel="alternate" type="text/html" href="http://stalkerin.gameru.net/wiki/index.php?title=SoC._%D0%9A%D1%80%D0%B8%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B5_%D1%80%D0%B0%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5"/>
				<updated>2011-03-30T17:05:35Z</updated>
		
		<summary type="html">&lt;p&gt;109.74.221.248: Отмена правки 9716 участника 61.178.141.214 (обсуждение)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Эффект критического ранения ГГ в &amp;quot;Тени Чернобыля&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1.''' Создать файл '''effect_blood.script''' и записать следущее:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lua&amp;gt;&lt;br /&gt;
lite_treshold = 0.05    --'насколько должно уменьшиться здоровье с предыдущего обновления, чтобы экран окрасился в красный&lt;br /&gt;
crit_treshold = 0.30    --'насколько должно уменьшиться здоровье с предыдущего обновления, чтобы ГГ начало шатать&lt;br /&gt;
drop_item_on_crit_prob = 0.20    --'вероятность того, что ГГ выронит оружие&lt;br /&gt;
effector_power_coeff = 0.7&lt;br /&gt;
prev_health = -1&lt;br /&gt;
chk_h_t = 0&lt;br /&gt;
&lt;br /&gt;
function wounded_pp_update()&lt;br /&gt;
  if (chk_h_t or 0) &amp;lt; time_global() then&lt;br /&gt;
    chk_h_t = time_global()+1000&lt;br /&gt;
    if prev_health &amp;gt; (db.actor.health + lite_treshold) then&lt;br /&gt;
      level.add_pp_effector(&amp;quot;fire_hit.ppe&amp;quot;, 2011, false)&lt;br /&gt;
      local effector_power = (prev_health - db.actor.health)*100*effector_power_coeff&lt;br /&gt;
      level.set_pp_effector_factor(2011, effector_power)&lt;br /&gt;
      if prev_health &amp;gt; db.actor.health + crit_treshold then&lt;br /&gt;
        level.add_cam_effector(&amp;quot;camera_effects\\fusker.anm&amp;quot;, 999, false, &amp;quot;&amp;quot;)    &lt;br /&gt;
        local snd_obj = xr_sound.get_safe_sound_object([[actor\pain_3]])&lt;br /&gt;
        snd_obj:play_no_feedback(db.actor, sound_object.s2d, 0, vector(), 1.0)&lt;br /&gt;
        if math.random() &amp;lt; drop_item_on_crit_prob then&lt;br /&gt;
          local active_item = db.actor:active_item()&lt;br /&gt;
          if active_item and active_item:section() ~= &amp;quot;bolt&amp;quot; and active_item:section()~= &amp;quot;wpn_knife&amp;quot; then&lt;br /&gt;
            db.actor:drop_item(active_item)&lt;br /&gt;
          end&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    prev_health = db.actor.health&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/lua&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''2.''' Далее открываем '''bind_stalker.script''' и в функцию&lt;br /&gt;
&amp;lt;lua&amp;gt;&lt;br /&gt;
function actor_binder:update(delta)&lt;br /&gt;
  object_binder.update(self, delta)&lt;br /&gt;
  local time = time_global()&lt;br /&gt;
  game_stats.update (delta, self.object)&lt;br /&gt;
&amp;lt;/lua&amp;gt;&lt;br /&gt;
добавляем строку&lt;br /&gt;
&amp;lt;lua&amp;gt;&lt;br /&gt;
effect_blood.wounded_pp_update()&lt;br /&gt;
&amp;lt;/lua&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Категория:Скрипты]]&lt;/div&gt;</summary>
		<author><name>109.74.221.248</name></author>	</entry>

	</feed>