Skip to content

Commit

Permalink
Sharded monster base type defs for ltx.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Mar 12, 2024
1 parent 45c6d42 commit 1370e2d
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 83 deletions.
60 changes: 31 additions & 29 deletions src/engine/configs/$scheme/base.scheme.ltx
Original file line number Diff line number Diff line change
@@ -1,49 +1,51 @@
[$spawn_object]
$spawn.type = string
$spawn.optional = true
$prefetch.type = u8
$npc.optional = true
$npc.type = enum:on,off
$prefetch.optional = true
$prefetch.type = u8
$spawn.optional = true
$spawn.type = string
GroupControlSection.type = string
$npc.type = enum:on,off
$npc.optional = true
story_id.optional = true
story_id.type = string

[$immunities]
strict = true
burn_immunity.type = f32
strike_immunity.type = f32
shock_immunity.type = f32
wound_immunity.type = f32
wound_2_immunity.type = f32
wound_2_immunity.optional = true
radiation_immunity.type = f32
telepatic_immunity.type = f32
chemical_burn_immunity.type = f32
explosion_immunity.type = f32
fire_wound_immunity.type = f32
radiation_immunity.type = f32
shock_immunity.type = f32
strike_immunity.type = f32
telepatic_immunity.type = f32
wound_2_immunity.optional = true
wound_2_immunity.type = f32
wound_immunity.type = f32

[$effector_params]
strict = true
blur.type = f32
ce_amplitude.optional = true
ce_amplitude.type = f32
ce_period_number.optional = true
ce_period_number.type = f32
ce_power.optional = true
ce_power.type = f32
ce_time.optional = true
ce_time.type = f32
color_add.type = vector
color_base.type = vector
color_gray.type = vector
duality_h.type = f32
duality_v.type = f32
blur.type = f32
gray.type = f32
noise_intensity.type = f32
noise_grain.type = f32
noise_fps.type = u8
color_base.type = vector
color_gray.type = vector
color_add.type = vector
time.type = f32
noise_grain.type = f32
noise_intensity.type = f32
time.optional = true
time_attack.type = f32
time.type = f32
time_attack.optional = true
time_release.type = f32
time_attack.type = f32
time_release.optional = true
ce_time.type = f32
ce_time.optional = true
ce_amplitude.type = f32
ce_amplitude.optional = true
ce_period_number.type = f32
ce_period_number.optional = true
ce_power.type = f32
ce_power.optional = true
time_release.type = f32
155 changes: 102 additions & 53 deletions src/engine/configs/$scheme/creatures.scheme.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,86 @@ feel_enemy_who_just_hit_max_distance.type = f32
feel_enemy_who_made_sound_max_distance.optional = true
feel_enemy_who_made_sound_max_distance.type = f32

[$monster_shared]
[$monster_shared_jumper]
jump_delay.type = u32
jump_factor.type = f32
jump_ground_trace_range.type = f32
jump_hit_trace_range.type = f32
jump_build_line_distance.type = f32
jump_min_distance.type = f32
jump_max_distance.type = f32
jump_max_angle.type = f32
jump_max_height.type = f32
jump_auto_aim_factor.type = f32

[$monster_shared_velocity]
Velocity_Drag.array = true
Velocity_Drag.type = f32
Velocity_JumpGround.array = true
Velocity_JumpGround.optional = true
Velocity_JumpGround.type = f32
Velocity_JumpStart.array = true
Velocity_JumpStart.optional = true
Velocity_JumpStart.type = f32
Velocity_Rotate.array = true
Velocity_Rotate.optional = true
Velocity_Rotate.type = f32
Velocity_RunFwdDamaged.array = true
Velocity_RunFwdDamaged.type = f32
Velocity_RunFwdNormal.array = true
Velocity_RunFwdNormal.type = f32
Velocity_Stand.array = true
Velocity_Stand.type = f32
Velocity_Steal.array = true
Velocity_Steal.type = f32
Velocity_WalkFwdDamaged.array = true
Velocity_WalkFwdDamaged.type = f32
Velocity_WalkFwdNormal.array = true
Velocity_WalkFwdNormal.type = f32

[$monster_shared_sound]
sound_aggressive.type = string
sound_attack_hit.type = string
sound_bkgnd.optional = true
sound_bkgnd.type = string
sound_die.type = string
sound_die_in_anomaly.type = string
sound_distant_idle.type = string
sound_eat.type = string
sound_growling.optional = true
sound_growling.type = string
sound_idle.type = string
sound_landing.optional = true
sound_landing.optional = true
sound_landing.type = string
sound_landing.type = string
sound_panic.type = string
sound_steal.optional = true
sound_steal.type = string
sound_take_damage.type = string
sound_threaten.optional = true
sound_threaten.type = string

[$monster_shared_physical]
ph_after_death_velocity_factor.type = f32
ph_box0_center.type = vector
ph_box0_size.type = vector
ph_box1_center.type = vector
ph_box1_size.type = vector
ph_collision_damage_factor.type = f32
ph_crash_speed_max.type = f32
ph_crash_speed_min.type = f32
ph_foot_size.optional = true
ph_foot_size.type = vector
ph_mass.type = f32
ph_skel_fatal_impulse_factor.type = f32
ph_skel_shot_up_factor.type = f32
ph_skeleton_airr_ang_factor.type = f32
ph_skeleton_airr_lin_factor.type = f32
ph_skeleton_ddelay.type = f32
ph_skeleton_hinger_factor1.type = f32

[$monster_shared]:$monster_shared_velocity,$monster_shared_sound,$monster_shared_physical
Accel_Aggressive.type = f32
Accel_Calm.type = f32
Accel_Generic.type = f32
Expand All @@ -51,6 +130,7 @@ MaxAttackDist.type = f32
MaxHealthValue.type = f32
Max_Satiety.optional = true ; todo: Not used?
Max_Satiety.type = f32 ; todo: Not used?
Melee_Rotation_Factor.optional = true ; 1.5 by default
Melee_Rotation_Factor.type = f32
MinAttackDist.type = f32
Min_Satiety.optional = true ; todo: Not used?
Expand All @@ -72,20 +152,6 @@ SpaceRestrictionSection.array = true
SpaceRestrictionSection.type = string
Spawn_Inventory_Item_Probability.type = f32
Spawn_Inventory_Item_Section.type = string
Velocity_Drag.array = true
Velocity_Drag.type = f32
Velocity_RunFwdDamaged.array = true
Velocity_RunFwdDamaged.type = f32
Velocity_RunFwdNormal.array = true
Velocity_RunFwdNormal.type = f32
Velocity_Stand.array = true
Velocity_Stand.type = f32
Velocity_Steal.array = true
Velocity_Steal.type = f32
Velocity_WalkFwdDamaged.array = true
Velocity_WalkFwdDamaged.type = f32
Velocity_WalkFwdNormal.array = true
Velocity_WalkFwdNormal.type = f32
actor_restrictor.optional = true
actor_restrictor.type = string
aom_animation_left.optional = true
Expand All @@ -112,6 +178,8 @@ as_min_dist.type = f32
as_step.type = f32
attack_effector.type = string
attack_params.type = string
attack_radius.optional = true
attack_radius.type = f32
attack_sound_delay.type = u32
bleeding_v.type = f32
bone_eye_left.optional = true
Expand Down Expand Up @@ -181,24 +249,9 @@ monster_type.type = enum:indoor,outdoor
morale_v.type = f32
panic_threshold.optional = true
panic_threshold.type = f32
ph_after_death_velocity_factor.type = f32
ph_box0_center.type = vector
ph_box0_size.type = vector
ph_box1_center.type = vector
ph_box1_size.type = vector
ph_collision_damage_factor.type = f32
ph_crash_speed_max.type = f32
ph_crash_speed_min.type = f32
ph_foot_size.optional = true
ph_foot_size.type = vector
ph_mass.type = f32
ph_skel_fatal_impulse_factor.type = f32
ph_skel_shot_up_factor.type = f32
ph_skeleton_airr_ang_factor.type = f32
ph_skeleton_airr_lin_factor.type = f32
ph_skeleton_ddelay.type = f32
ph_skeleton_hinger_factor1.type = f32
power_hit_part.type = f32
prediction_factor.optional = true
prediction_factor.type = f32
protections_sect.optional = true
protections_sect.type = string ; todo: section
psy_health_v.type = f32
Expand Down Expand Up @@ -235,30 +288,11 @@ sleep_psy_health.type = f32
sleep_radiation.type = f32
sleep_satiety.type = f32
smart_terrain_choose_interval.type = string
sound_aggressive.type = string
sound_attack_hit.type = string
sound_bkgnd.optional = true
sound_bkgnd.type = string
sound_die.type = string
sound_die_in_anomaly.type = string
sound_distant_idle.type = string
sound_eat.type = string
sound_growling.optional = true
sound_growling.type = string
sound_idle.type = string
sound_landing.optional = true
sound_landing.optional = true
sound_landing.type = string
sound_landing.type = string
sound_panic.type = string
sound_steal.optional = true
sound_steal.type = string
sound_take_damage.type = string
sound_threaten.optional = true
sound_threaten.type = string
spec_rank.optional = true
spec_rank.type = enum:novice,regular,normal,experienced,regular,strong,veteran,weak
species.type = string
squad_attack_algorithm.optional = true ; 0 by default
squad_attack_algorithm.type = u8 ; boolean
step_params.type = string
terrain.optional = true
terrain.type = string
Expand Down Expand Up @@ -677,3 +711,18 @@ sound_tele_throw.type = string
weapon_drop_stamina_k.type = f32
weapon_drop_velocity.type = f32
weight_to_stamina_hit.type = f32

[$chimera]:$alife_base,$spawn_object,$monster_base,$monster_shared,$monster_shared_jumper
strict = true
attack_jump_timeout.type = u32
attack_radius.type = f32
default.type = vector
head_boss.type = vector
hip.type = vector
neck_r.type = vector
num_attack_jumps.type = u32
num_prepare_jumps.type = u32
prepare_jump_timeout.type = u32
spine.type = vector
spine_1.type = vector
stealth_timeout.type = u32
5 changes: 4 additions & 1 deletion src/engine/configs/creatures/m_chimera.ltx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[m_chimera_e]:monster_base
$scheme = $chimera
GroupControlSection = spawn_group
SpaceRestrictionSection = space_restrictor,zone_mosquito_bald,zone_witches_galantine,zone_burning_fuzz1,zone_mincer,zone_gravi_zone
$spawn = "monsters\chimera\chimera_default" ; option for Level Editor
Expand Down Expand Up @@ -31,6 +32,8 @@ going_speed = 3 ; 4.5 ; option for ALife Simulator
current_level_going_speed = 3 ; 2 ; option for ALife Simulator
search_speed = 1.5 ; option for ALife Simulator
MaxHealthValue = 1000 ; range [0..200]
Spawn_Inventory_Item_Section = mutant_chimera_item
Spawn_Inventory_Item_Probability = 0.0
smart_terrain_choose_interval = 00:15:00
script_binding = bind.monster ; xrf change
ef_creature_type = 20 ; option for evaluation functions
Expand Down Expand Up @@ -69,7 +72,7 @@ Velocity_WalkFwdDamaged = 2.0, 3.0, 2.0, 0.5, 2.0
Velocity_WalkFwdNormal = 2.3, 3.2, 1.2, 0.02, 3.0
Velocity_Drag = 1.0, 3.0, 3.0, 1, 1
Velocity_Steal = 1.5, 3.0, 2.0, 1, 1
Velocity_Rotate = 0.0, 6.0, 1.0, 0.1 1
Velocity_Rotate = 0.0, 6.0, 1.0, 0.1, 1
Velocity_JumpGround = 8.0, 3.5, 2.0, 0.4, 1
Velocity_JumpStart = 8.0, 3.5, 2.0, 0.4, 1
Accel_Generic = 1.5
Expand Down

0 comments on commit 1370e2d

Please sign in to comment.