;===========================================================================
; DeathClaw. New Monster by Scarabay.
; Last edit: 18.09.2011  by amik.
;===========================================================================
[m_deathclaw_e]:m_bloodsucker_e
visual			= monsters\deathclaw\deathclaw
corpse_visual 	= monsters\deathclaw\deathclaw
icon			= ui_npc_monster_deathclaw
short_name		= deathclaw
panic_threshold	 = 0.1

Spawn_Inventory_Item_Section = part_deathclaw_antler
Spawn_Inventory_Item_Probability = 0.86

; Offline Alife
MinSpeed		    			= 2.0	;1.0		; option for ALife Simulator
MaxSpeed		    			= 5.0	;1.5		; option for ALife Simulator
going_speed          			= 2.0	;1.0         ; option for ALife Simulator
current_level_going_speed	= 2				; option for ALife Simulator
search_speed         			= 2.5                      	; option for ALife Simulator

; Physics
ph_box0_center 	= 0.0,  1.4,  0.0
ph_box0_size 		= 1.0, 1.0,  1.5
ph_box1_center 	= 0.0,  0.6,  0.0
ph_box1_size 		= 0.40, 0.6,  0.40
ph_foot_size 		= 0.25, 0.35, 0.25
ph_mass 			= 280 ;120

; Movement::Velocities & Acceleration
; speed factors		linear | angular_real | angular_path | min	 |  max
Velocity_Stand				= 0,			3.05,	3.05,	1,		1	
Velocity_WalkFwdNormal	= 1.7,		3.5,		3.5,		0.2,		2.0
Velocity_WalkFwdDamaged = 1.2,		4.0,		4.0,		0.2,		2.0
Velocity_RunFwdNormal	= 5.8,		4.0,		4.0,		0.5,		1	
Velocity_RunFwdDamaged	= 2.0,		3.0,		3.0,		0.5,		1
Velocity_Drag				= 1.5,		3.0,		3.0,		1,		1
Velocity_Steal				= 1.0,		3.0,		3.0,		1,		1

; Speed factors while invisible
Velocity_Invisible_Linear	= 5.8 
Velocity_Invisible_Angular	= 5.62

; Attack parameters
MinAttackDist	= 2.1 	;2.4    
MaxAttackDist	= 2.4	;3.8	

EffectDistance	= 15.0
as_min_dist		= 1.7    
as_step		= 0.3

Run_Attack_Dist 	= 1.3, 2.2
Run_Attack_Delay 	= 100, 500 

attack_params	= deathclaw_attack_params

Melee_Rotation_Factor	= 2.0
berserk_always	 = true

; Entity Conditions
satiety_v 			= 0.0001		;скорость уменьшения сытости со временем [0...1]
radiation_v 			= 0.00001		;скорость уменьшения радиации [0...1]
satiety_power_v 	= 0.005			;увеличение силы при уменьшении сытости [0...1]
satiety_health_v 	= 0.001			;увеличение здоровья при уменьшении сытости [0...1]
satiety_critical 		= -1.0			;критическое значения сытости (в процентах от 0..1) когда здоровье начианает уменьшаться
radiation_health_v 	= 0.0	     		;уменьшение здоровья при воздействии радиации [0...1]
morale_v			= 0.01			;скорость восстановления морали [0...1]
health_hit_part 		= 1.0			;процент хита, уходящий на отнимание здоровья [0...1]
power_hit_part 		= 1.0			;процент хита, уходящий на отнимание силы [0...1]
psy_health_v		= 0.1			;скорость восстановления psy-здоровья

immunities_sect		= deathclaw_immunities

; Eat settings
eat_freq			= 10.0
eat_slice			= 0.05
eat_slice_weight	= 10.0
satiety_threshold	= 0.25		; below this value monster fill hunger

; Sounds and sound parameters
sound_idle				= monsters\deathclaw\idle_
sound_eat				= monsters\deathclaw\eat_
sound_aggressive		= monsters\deathclaw\aggressive
sound_attack_hit		= monsters\deathclaw\attack_hit_
sound_take_damage	= monsters\deathclaw\pain_
sound_die				= monsters\deathclaw\die_
sound_panic			= monsters\deathclaw\panic
sound_die_in_anomaly	= monsters\deathclaw\die_
sound_distant_idle		= monsters\deathclaw\idle_

distant_idle_sound_delay	= 80000
distant_idle_sound_range	= 100.0	

;Frequency of sounds to be played
idle_sound_delay			= 95000
eat_sound_delay			= 3000
attack_sound_delay		= 1000 ;6000
SoundThreshold		 	= 0.05	 ; range [0..1]
max_hear_dist				= 80 

; Vision
eye_fov				= 110	;150	
eye_range				= 80	;120
min_view_distance   	= 0.4				; коэффициент, который множится на eye_range, в зависимости от угла
max_view_distance	 	= 1.0				; коэффициент, который множится на eye_range, в зависимости от угла
visibility_threshold	 	= 100.0				; значение, при достижении суммой которого объект считается видимым
always_visible_distance = 0.3
transparency_threshold	= 0.25

; Morale
Morale_Hit_Quant				= 0.1
Morale_Attack_Success_Quant	= 0.1
Morale_Take_Heart_Speed	= 0.1
Morale_Despondent_Speed	= 0.01
Morale_Stable_Speed			= 0.01
Morale_Despondent_Threashold = 0.5

; Damages
damage = deathclaw_damage

critical_wound_threshold	= -1 ;1.1
critical_wound_decrease_quant	= 0.

critical_wound_anim_head	= critical_hit_head_0
critical_wound_bones_head	= deathclaw_critical_wound_bones_head

;critical_wound_anim_torso	 = critical_hit_torso_1, critical_hit_torso_2
;critical_wound_bones_torso = deathclaw_critical_wound_bones_torso

critical_wound_anim_legs	= critical_hit_leg_0, critical_hit_leg_1
critical_wound_bones_legs	= deathclaw_critical_wound_bones_legs

; Other Stuff (refactoring needed)
distance_to_corpse	= 2.2

; spin spin sugar
bone_spin = bip01_spine

; Selector (amik edit)
;                    fSearchRange,fOptEnemyDistance,fOptEnemyDistanceWeight,fMinEnemyDistance,fMinEnemyDistanceWeight,fMaxEnemyDistance,fMaxEnemyDistanceWeight
selector_approach =      100.0,            50.0,           100.0,                   0.0,             100.0,                170.0,		     101.0,

material = creatures\medium
species	= deathclaw

; Invisible Ability
Particle_Invisible = anomaly2\bloodsucker_shield

; Predator Ability
Predator_Visual = monsters\deathclaw\deathclaw

;=================================================================================
; deathclaw Damage
;=================================================================================
[deathclaw_damage]
;bone_name	 = <hit_scale>,-1,<wound_scale>
;<hit_scale>	- коэфф. изменения хита (уменьшения здоровья) 
;<wound_scale>	- коэфф. изменения величины открытой раны

default       = 0.6, -1, 0.5
bip01_spine     = 0.25, -1, 0.5
bip01_spine1    = 0.25, -1, 0.0
bip01_spine2    = 0.25, -1, 0.5
bip01_neck      = 0.5, -1, 0.5
bip01_head      = 0.65, -1, 0.5, 10
bip01_ponytail1  = 0.25, -1, 1.0, 10
bip01_ponytail2  = 0.25, -1, 1.0, 10
bip01_l_upperarm = 0.15, -1, 0.5
bip01_l_forearm = 0.15, -1, 0.5
bip01_l_hand = 0.15, -1, 0.5
bip01_r_upperarm = 0.15, -1, 0.5
bip01_r_forearm = 0.15, -1, 0.5
bip01_r_hand = 0.15, -1, 0.5
bip01_pelvis = 0.15, -1, 0.5

[deathclaw_critical_wound_bones_head]
bip01_neck
bip01_head
bip01_ponytail1
bip01_ponytail2
bip01_ponytail3

[deathclaw_critical_wound_bones_torso]
bip01_pelvis
bip01_spine
bip01_spine1
bip01_spine2
bip01_neck
bip01_l_clavicle
bip01_l_upperarm
bip01_l_forearm
bip01_l_hand
bip01_l_finger0
bip01_l_finger01
bip01_l_finger1
bip01_l_finger11
bip01_l_finger2
bip01_l_finger21
bip01_l_finger3
bip01_l_finger31
bip01_l_finger4
bip01_l_finger41
bip01_r_clavicle
bip01_r_upperarm
bip01_r_forearm
bip01_r_hand
bip01_r_finger0
bip01_r_finger01
bip01_r_finger1
bip01_r_finger11
bip01_r_finger2
bip01_r_finger21
bip01_r_finger3
bip01_r_finger31
bip01_r_finger4
bip01_r_finger41

[deathclaw_critical_wound_bones_legs]
bip01_l_thigh
bip01_l_calf
bip01_l_foot
bip01_l_toe0
bip01_l_toe01
bip01_l_toe1
bip01_l_toe11
bip01_l_toe2
bip01_l_toe21
bip01_r_thigh
bip01_r_calf
bip01_r_foot
bip01_r_toe0
bip01_r_toe01
bip01_r_toe1
bip01_r_toe11
bip01_r_toe2
bip01_r_toe21

;=================================================================================
; deathclaw Terrain
;=================================================================================
[deathclaw_terrain]
	255,000,255,255
	059,000,000,000

;===========================================================================
; Attack Animation Parameters
;===========================================================================
[deathclaw_attack_params]
stand_attack_0 =	deathclaw_attack_0_sect_add
stand_attack_1 =	deathclaw_attack_1_sect_add
stand_attack_2 =	deathclaw_attack_2_sect_add
;stand_attack_run_0 =	deathclaw_run_attack_sect_add

; anim	(amik_sect_add)| time[0..1] | hit_power | impulse | impulse_dir (x,y,z)  |	Field of hit_test  (left,right, bottom, top ) |	Test Dist
[deathclaw_attack_0_sect_add]
value1			= 0.30,		1.00,	    360,        -1.5, 1.1, 0.7,		 -1.0, 1.0, -1.0, 1.0,				  2.5
value2			= 0.30,		1.05,	    380,        -1.5, 1.3, 0.8,		 -1.0, 1.0, -1.0, 1.0,				  2.5
value3			= 0.30,		0.95,	    300,        -1.5, 1.0, 0.5,		 -1.0, 1.0, -1.0, 1.0,				  2.5

[deathclaw_attack_1_sect_add]
value1			= 0.25,		0.85	    260,        -3.7, 0.0, 0.5,		 -0.8, 0.8, -1.2, 1.2,				  2.5
value2			= 0.25,		0.93	    280,        -4.0, 0.0, 0.6,		 -0.8, 0.8, -1.2, 1.2,				  2.5
value3			= 0.25,		1.00	    310,        -5.5, 0.0, 0.7,		 -0.8, 0.8, -1.2, 1.2,				  2.5

[deathclaw_attack_2_sect_add]
value1			= 0.30,		1.00,	    370,        1.8, 1.2, 0.70, 	 -1.0, 1.0, -1.0, 1.0,				  2.5
value2			= 0.30,		1.10,	    400,        2.2, 1.5, 0.90, 	 -1.0, 1.0, -1.0, 1.0,				  2.5
value3			= 0.30,		1.05,	    380,        2.0, 1.4, 0.80, 	 -1.0, 1.0, -1.0, 1.0,				  2.5
value4			= 0.30,		1.15,	    450,        2.5, 1.7, 1.20, 	 -1.0, 1.0, -1.0, 1.0,				  2.5

[deathclaw_run_attack_sect_add]
value1			= 0.30,		0.85,	    390,        0.0, 0.2, 3.10,		  -1.2, 1.2, -1.2, 1.2,				  2.2
value2			= 0.30,		0.80,	    370,        0.0, 0.1, 3.00,		  -1.2, 1.2, -1.2, 1.2,				  2.2
value3			= 0.30,		0.90,	    410,        0.0, 0.4, 3.50,		  -1.2, 1.2, -1.2, 1.2,				  2.2

;===========================================================================
; Immunities
;===========================================================================
[deathclaw_immunities]
burn_immunity			= 0.5
strike_immunity			= 0.1
shock_immunity			= 0.7
wound_immunity 		= 0.01
radiation_immunity 		= 0.0
telepatic_immunity 		= 0.0
chemical_burn_immunity = 0.6
explosion_immunity 	= 0.06
fire_wound_immunity  	= 0.004

; WEAK PROFILE	КОГОТЬ из Fallout 4 (автор - Greshnik13rs)
[deathclaw_weak]:m_deathclaw_e
visual			 = monsters\deathclaw\deathclaw_weak
icon			 = ui_npc_monster_deathclaw_weak
short_name		 = deathclaw_weak
panic_threshold	 = 0.1
rank			 = 200
spec_rank		 = weak
Predator_Visual = monsters\deathclaw\deathclaw_weak
attack_params	 = deathclaw_attack_params_weak

;===========================================================================
; Attack Animation Parameters
;===========================================================================
[deathclaw_attack_params_weak]
stand_attack_0 =	deathclaw_attack_0_sect_add_weak
stand_attack_1 =	deathclaw_attack_1_sect_add_weak
stand_attack_2 =	deathclaw_attack_2_sect_add_weak
stand_attack_run_0 = deathclaw_run_attack_sect_add_weak

; anim	(amik_sect_add)| time[0..1] | hit_power | impulse | impulse_dir (x,y,z)  |	Field of hit_test  (left,right, bottom, top ) |	Test Dist
[deathclaw_attack_0_sect_add_weak]
value1			= 0.30,		0.80,	    360,        -1.5, 1.1, 0.7,		 -1.0, 1.0, -1.0, 1.0,				  2.5
value2			= 0.30,		0.95,	    380,        -1.5, 1.3, 0.8,		 -1.0, 1.0, -1.0, 1.0,				  2.5
value3			= 0.30,		0.85,	    300,        -1.5, 1.0, 0.5,		 -1.0, 1.0, -1.0, 1.0,				  2.5

[deathclaw_attack_1_sect_add_weak]
value1			= 0.25,		0.75	    260,        -3.7, 0.0, 0.5,		 -0.8, 0.8, -1.2, 1.2,				  2.5
value2			= 0.25,		0.75	    280,        -4.0, 0.0, 0.6,		 -0.8, 0.8, -1.2, 1.2,				  2.5
value3			= 0.25,		0.80	    310,        -5.5, 0.0, 0.7,		 -0.8, 0.8, -1.2, 1.2,				  2.5

[deathclaw_attack_2_sect_add_weak]
value1			= 0.30,		0.80,	    370,        1.8, 1.2, 0.70, 	 -1.0, 1.0, -1.0, 1.0,				  2.5
value2			= 0.30,		0.90,	    400,        2.2, 1.5, 0.90, 	 -1.0, 1.0, -1.0, 1.0,				  2.5
value3			= 0.30,		0.95,	    380,        2.0, 1.4, 0.80, 	 -1.0, 1.0, -1.0, 1.0,				  2.5
value4			= 0.30,		0.95,	    450,        2.5, 1.7, 1.20, 	 -1.0, 1.0, -1.0, 1.0,				  2.5

[deathclaw_run_attack_sect_add_weak]
value1			= 0.30,		1.05,	    390,        0.0, 0.2, 3.10,		  -1.2, 1.2, -1.2, 1.2,				  2.2
value2			= 0.30,		0.90,	    370,        0.0, 0.1, 3.00,		  -1.2, 1.2, -1.2, 1.2,				  2.2
value3			= 0.30,		0.80,	    410,        0.0, 0.4, 3.50,		  -1.2, 1.2, -1.2, 1.2,				  2.2

; NORMAL PROFILE
[deathclaw_normal]:m_deathclaw_e
visual			 = monsters\deathclaw\deathclaw_normal
icon			 = ui_npc_monster_deathclaw_normal
short_name		 = deathclaw_normal
panic_threshold	 = 0.05
rank			 = 401
spec_rank		 = normal
Predator_Visual = monsters\deathclaw\deathclaw_normal
immunities_sect	 = deathclaw_immunities_normal

[deathclaw_immunities_normal]
burn_immunity			= 0.45
strike_immunity			= 0.1
shock_immunity			= 0.65
wound_immunity 		= 0.01
radiation_immunity 		= 0.0
telepatic_immunity 		= 0.0
chemical_burn_immunity = 0.55
explosion_immunity 	= 0.05
fire_wound_immunity  	= 0.003

; STRONG PROFILE
[deathclaw_strong]:m_deathclaw_e
short_name		 = deathclaw_strong
panic_threshold = 0.01
rank			 = 801
spec_rank		 = strong
immunities_sect	 = deathclaw_immunities_strong

[deathclaw_immunities_strong]
burn_immunity			= 0.4
strike_immunity			= 0.1
shock_immunity			= 0.6
wound_immunity 		= 0.01
radiation_immunity 		= 0.0
telepatic_immunity 		= 0.0
chemical_burn_immunity = 0.5
explosion_immunity 	= 0.03
fire_wound_immunity  	= 0.0025

; Квестовый фантомный коготь смерти
[deathclaw_phantom]:deathclaw_strong
visual			 = monsters\deathclaw\deathclaw_phantom
Predator_Visual = monsters\deathclaw\deathclaw_phantom
icon			= ui_npc_predator
short_name		= deathclaw_phantom
Spawn_Inventory_Item_Probability = 0
