Skip to content

Commit

Permalink
Define schemes for controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Mar 12, 2024
1 parent 1370e2d commit 4d9b74c
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cli/bin
44 changes: 43 additions & 1 deletion src/engine/configs/$scheme/creatures.scheme.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ Velocity_WalkFwdDamaged.array = true
Velocity_WalkFwdDamaged.type = f32
Velocity_WalkFwdNormal.array = true
Velocity_WalkFwdNormal.type = f32
Velocity_MoveFwd.array = true
Velocity_MoveFwd.optional = true
Velocity_MoveFwd.type = f32
Velocity_MoveBkwd.array = true
Velocity_MoveBkwd.optional = true
Velocity_MoveBkwd.type = f32

[$monster_shared_sound]
sound_aggressive.type = string
Expand Down Expand Up @@ -263,7 +269,9 @@ radiation_health_v.type = f32
radiation_linear_factor.type = f32
radiation_max_distance.type = f32
radiation_max_power.type = f32
radiation_pp_effector_name.optional = true
radiation_pp_effector_name.type = string
radiation_pp_highest_at.optional = true
radiation_pp_highest_at.type = f32
radiation_quadratic_factor.type = f32
radiation_v.type = f32
Expand Down Expand Up @@ -340,6 +348,9 @@ stand_walk_fwd_0.type = f32
stand_walk_fwd_dmg_0.array = true
stand_walk_fwd_dmg_0.optional = true
stand_walk_fwd_dmg_0.type = f32
stand_walk_dmg_0.array = true
stand_walk_dmg_0.optional = true
stand_walk_dmg_0.type = f32

[$monster_attack_params]
strict = true
Expand Down Expand Up @@ -395,8 +406,9 @@ bip01_spine3.optional = true
bip01_spine3.type = vector
bip01_neck.optional = true
bip01_neck.type = vector
bip01_head.array = true
bip01_head.optional = true
bip01_head.type = vector
bip01_head.type = f32
bip01_pelvis.type = vector
bip01_pelvis.optional = true
bip01_l_upperarm.type = vector
Expand Down Expand Up @@ -726,3 +738,33 @@ prepare_jump_timeout.type = u32
spine.type = vector
spine_1.type = vector
stealth_timeout.type = u32

[$controller]:$alife_base,$spawn_object,$monster_base,$monster_shared
strict = true
Control_Hit.type = string
Friend_Community_Overrides.type = string
Max_Controlled_Count.type = u8
control_effector.type = string ; section
control_fx_texture.type = string
control_fx_texture2.type = string
psy_pp_effector_name.type = string
psy_pp_highest_at.type = f32
psy_sound.type = string
selector_cover.array = true
selector_cover.type = f32
selector_getaway.array = true
selector_getaway.type = f32
selector_free_hunting.array = true
selector_free_hunting.type = f32
selector_hear_sound.array = true
selector_hear_sound.type = f32
selector_walk_around.array = true
selector_walk_around.type = f32
sound_control_hit.type = string
sound_control_start.type = string
stamina_hit.type = f32
tube_at_once.type = bool
tube_condition_min_delay.type = u32
tube_condition_min_distance.type = f32
tube_condition_see_duration.type = u32
tube_damage.type = f32
48 changes: 29 additions & 19 deletions src/engine/configs/creatures/m_controller.ltx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[m_controller_e]:monster_base
$scheme = $controller
GroupControlSection = spawn_group
SpaceRestrictionSection = space_restrictor,zone_mosquito_bald
$spawn = "monsters\old\controller" ; option for Level Editor
Expand All @@ -16,6 +17,8 @@ visual = monsters\controller\controller_1
corpse_visual = monsters\controller\controller_dead
icon = ui_npc_monster_controller
MaxHealthValue = 200 ; range [0..200]
Spawn_Inventory_Item_Section = mutant_controller_hand
Spawn_Inventory_Item_Probability = 0.0
DynamicObjectsCount = 32
smart_terrain_choose_interval = 00:15:00
ef_creature_type = 12 ; option for evaluation functions
Expand Down Expand Up @@ -201,6 +204,24 @@ vision_danger_section = controller_vision_danger
; �������� visibility_threshold ������ ���� ����� ��� ������� � ���,
; ����� ��������� ��������� � ������� ��������� ��� �������� �� ������� �� ���.

[m_controller_normal]:m_controller_e
$spawn = "monsters\old\controller_normal"
visual = monsters\controller\controller_1
corpse_visual = monsters\controller\controller_dead
icon = ui_npc_monster_controller
spec_rank = normal
rank = 18
community = controller

[controller_tubeman]:m_controller_e ; temporary!
$spawn = "monsters\old\controller_tubeman"
visual = monsters\controller\controller_1
corpse_visual = monsters\controller\controller_dead
icon = ui_npc_monster_controller
spec_rank = normal
rank = 18
community = controller

[controller_vision_free]
$scheme = $monster_vision
min_view_distance = 0.5 ; �����������, ������� �������� �� eye_range, � ����������� �� ����
Expand All @@ -226,10 +247,12 @@ luminocity_factor = 0.5 ; ������ ��������� (��
transparency_threshold = 0.25

[controller_protections]
$scheme = $monster_protections
skin_armor = 0.5
hit_fraction_monster = 0.4

[m_controller_step_params]
$scheme = $monster_step_params
; anim | Cycles | time1 | power1 | time2 | power2 |
stand_walk_fwd_0 = 1, 0.01, 1, 0.25, 0.7,
stand_walk_dmg_0 = 1, 0.01, 1, 0.25, 0.7,
Expand All @@ -249,6 +272,7 @@ explosion_immunity = 1.0
fire_wound_immunity = 1.0

[controller_control_effector]
$scheme = $effector_params
duality_h = 0.1 ; 0.31
duality_v = 0.2 ; 0.31
blur = 0.01
Expand All @@ -269,6 +293,7 @@ ce_period_number = 1.0
ce_power = 0.7

[m_controller_attack_effector]
$scheme = $effector_params
duality_h = 0.01
duality_v = 0.01
blur = 0.01
Expand All @@ -289,6 +314,7 @@ ce_period_number = 1.5 ; 2.0
ce_power = 1.5 ; 0.7 ; power

[controller_aura_pp_effector_section]
$scheme = $effector_params
; duality_h = 0.001
; duality_v = 0.001
; blur = 10
Expand All @@ -314,6 +340,7 @@ color_gray = 0.33,0.330,0.33
color_add = 0.00,0.00,0.015

[m_controller_attack_params]
$scheme = $monster_attack_params
; anim | time[0..1] | hit_power | impulse | impulse_dir (x,y,z) | Field of hit_test (left,right, bottom, top ) | Test Dist
; Right hand Strike
stand_attack_0 = 0.45, 0.55, 60, 0.0, 1.0, 0.0, -1.6, 1.6, -1.6, 1.6, 3.5
Expand All @@ -327,7 +354,8 @@ stand_attack_1 = 0.25, 0.55, 60, 0.0, 1.0, 0.0, -1.6, 1.6, -1.6, 1.6, 3.5
014,001,255,255 ; ��������� ������ �� ������� ������ �� ������
016,001,255,255 ; ��������� ������ �� ������� ������ �� �������

[m_Controller_damage]
[m_controller_damage]
$scheme = $monster_damage
; bone_name = <hit_scale>,-1,<wound_scale>
; <hit_scale> - �����. ��������� ���� (���������� ��������)
; <wound_scale> - �����. ��������� �������� �������� ����
Expand All @@ -338,24 +366,6 @@ bip01_spine1 = 1.0, -1, 0.5
bip01_neck = 1.0, -1, 1.0
bip01_head = 2.0, -1, 0.5, 10

[m_controller_normal]:m_controller_e
$spawn = "monsters\old\controller_normal"
visual = monsters\controller\controller_1
corpse_visual = monsters\controller\controller_dead
icon = ui_npc_monster_controller
spec_rank = normal
rank = 18
community = controller

[controller_tubeman]:m_controller_e ; temporary!
$spawn = "monsters\old\controller_tubeman"
visual = monsters\controller\controller_1
corpse_visual = monsters\controller\controller_dead
icon = ui_npc_monster_controller
spec_rank = normal
rank = 18
community = controller

[controller_critical_wound_bones_head]
bip01_neck
bip01_head
Expand Down

0 comments on commit 4d9b74c

Please sign in to comment.