Skip to content

Commit

Permalink
Type definitions for root ltx files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Mar 20, 2024
1 parent 7d090cc commit 9c7bf08
Show file tree
Hide file tree
Showing 24 changed files with 1,508 additions and 1,159 deletions.
13 changes: 0 additions & 13 deletions src/engine/configs/$scheme/base.scheme.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,3 @@ Scheduled = enum:on,off ; todo: Probably not used
current_level_going_speed = ?f32
going_speed = f32
search_speed = f32

[$details]
strict = true
swing_normal_amp1 = f32
swing_normal_amp2 = f32
swing_normal_rot1 = f32
swing_normal_rot2 = f32
swing_normal_speed = f32
swing_fast_amp1 = f32
swing_fast_amp2 = f32
swing_fast_rot1 = f32
swing_fast_rot2 = f32
swing_fast_speed = f32
20 changes: 20 additions & 0 deletions src/engine/configs/$scheme/camera.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[$demo_record]
strict = true
speed0 = f32
speed1 = f32
speed2 = f32
speed3 = f32
ang_speed0 = f32
ang_speed1 = f32
ang_speed2 = f32
ang_speed3 = f32

[$camera]
strict = true
autoaim_speed_x = ?tuple:f32,f32
autoaim_speed_y = ?tuple:f32,f32
lim_pitch = tuple:f32,f32
lim_yaw = tuple:f32,f32
lim_zoom = ?tuple:f32,f32
offset = ?vector
rot_speed = vector
7 changes: 7 additions & 0 deletions src/engine/configs/$scheme/fonts.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[$font]
strict = true
shader = string
texture = string
texture800 = ?string
texture1600 = ?string
interval = ?tuple:f32,f32
62 changes: 62 additions & 0 deletions src/engine/configs/$scheme/game_relations.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[$game_relations]
strict = true
attitude_friend_threshold = f32
attitude_neutal_threshold = f32
communities = string[]
goodwill_enemy = f32
goodwill_friend = f32
goodwill_names = string[]
goodwill_neutal = f32
monster_rating = string[]
rating = string[]
rating_names = string[]
reputation = string[]
reputation_names = string[]

[$action_points]
strict = true
community_goodwill_limits = tuple:i32,i32
community_member_fight_help_goodwill = i32
community_member_kill_goodwill = i32
danger_community_member_attack_goodwill = i32
danger_enemy_attack_goodwill = i32
danger_enemy_attack_reputation = i32
danger_friend_attack_goodwill = i32
danger_friend_attack_reputation = i32
danger_neutral_attack_goodwill = i32
danger_neutral_attack_reputation = i32
enemy_fight_help_goodwill = i32
enemy_fight_help_reputation = i32
enemy_kill_goodwill = i32
enemy_kill_reputation = i32
fight_remember_time = f32
free_community_member_attack_goodwill = i32
free_enemy_attack_goodwill = i32
free_enemy_attack_reputation = i32
free_friend_attack_goodwill = i32
free_friend_attack_reputation = i32
free_neutral_attack_goodwill = i32
free_neutral_attack_reputation = i32
friend_fight_help_goodwill = i32
friend_fight_help_reputation = i32
friend_kill_goodwill = i32
friend_kill_reputation = i32
min_attack_delta_time = i32
neutral_fight_help_goodwill = i32
neutral_fight_help_reputation = i32
neutral_kill_goodwill = i32
neutral_kill_reputation = i32
personal_goodwill_limits = tuple:i32,i32

[$ranks_properties]
strict = true
dispersion_experienced_k = f32
dispersion_novice_k = f32
immunities_experienced_k = f32
immunities_novice_k = f32
visibility_experienced_k = f32
visibility_novice_k = f32

[$smart_terrain_rank_change]
min = u32
max = u32
76 changes: 76 additions & 0 deletions src/engine/configs/$scheme/generic.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[$info_portions]
strict = true
files = string[]

[$dialogs]
strict = true
files = string[]

[$encyclopedia]
strict = true
files = string[]

[$profiles]
strict = true
files = string[]
specific_characters_files = string[]

[$script]
strict = true
current_server_entity_version = u8

[$physics]
strict = true
object_damage_factor = f32

[$sound]
strict = true
occlusion_scale = f32
snd_collide_min_volume = f32
snd_collide_max_volume = f32

[$trade]
strict = true
buy_price_factor_hostile = f32
buy_price_factor_friendly = f32
sell_price_factor_hostile = f32
sell_price_factor_friendly = f32

[$squad_manager]
strict = true
schedule_min = u32
schedule_max = u32

[$agent_manager]
schedule_min = u32
schedule_max = u32

[$collision_damage]
bonce_damage_factor_for_objects = f32

[$pkm_visual_memory]
min_view_distance = f32
max_view_distance = f32
visibility_threshold = f32
always_visible_distance = f32
time_quant = f32
decrease_value = f32
velocity_factor = f32
luminocity_factor = f32
transparency_threshold = f32
view_fov_deg = f32
view_aspect = f32
view_far_plane = f32

[$details]
strict = true
swing_normal_amp1 = f32
swing_normal_amp2 = f32
swing_normal_rot1 = f32
swing_normal_rot2 = f32
swing_normal_speed = f32
swing_fast_amp1 = f32
swing_fast_amp2 = f32
swing_fast_rot1 = f32
swing_fast_rot2 = f32
swing_fast_speed = f32
134 changes: 134 additions & 0 deletions src/engine/configs/$scheme/interface.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
[$zone_pick_dof]
strict = true
near = i32
far = u32

[$interface]
strict = true
font_game = string
font_small = string

[$inventory]
strict = true
take_dist = f32
max_weight = f32
max_ruck = u32
max_belt = u32
slots_count = u32
slot_persistent_1 = bool
slot_active_1 = bool
slot_persistent_2 = bool
slot_active_2 = bool
slot_persistent_3 = bool
slot_active_3 = bool
slot_persistent_4 = bool
slot_active_4 = bool
slot_persistent_5 = bool
slot_active_5 = bool
slot_persistent_6 = bool
slot_active_6 = bool
slot_persistent_7 = bool
slot_active_7 = bool
slot_persistent_8 = bool
slot_active_8 = bool
slot_persistent_9 = bool
slot_active_9 = bool
slot_persistent_10 = bool
slot_active_10 = bool
slot_persistent_11 = bool
slot_active_11 = bool
slot_persistent_12 = bool
slot_active_12 = bool

[$maingame_ui]
strict = true
pda_msgs_max_show_time = u32
info_msgs_max_show_time = u32
snd_new_contact = string
snd_new_contact1 = string

[$main_ingame_indicators_thresholds]
strict = true
radiation = f32[]
wounds = f32[]
jammed = f32[]
starvation = f32[]
fatigue = f32[]

[$tutorial_conditions_thresholds]
strict = true
max_power = f32
power = f32
bleeding = f32
satiety = f32
radiation = f32
weapon_jammed = f32
psy_health = f32

[$hud_sound]
strict = true
hud_sound_vol_k = f32
hud_step_sound_vol_k = f32

[$hud_cursor]
strict = true
cross_length = f32
min_radius = f32
max_radius = f32
cross_color = rgba

[$hud_hitmark]
strict = true
hit_mark_texture = string
grenade_mark_texture = string

[$stalker_names]
strict = true
name_cnt = u32
last_name_cnt = u32

[$bloody_marks]
strict = true
wallmarks = string[]
dist = f32
max_size = f32
min_size = f32
nominal_hit = f32
blood_drops = string[]
start_blood_size = f32
stop_blood_size = f32
blood_drop_time = f32
blood_drop_time_min = f32
blood_drop_time_max = f32
blood_drop_size = f32

[$explosion_marks]
strict = true
wallmarks = string[]
dist = f32
size = f32
max_count = f32

[$entity_fire_particles]
strict = true
fire_particles = string
start_burn_size = f32
stop_burn_size = f32
min_burn_time = f32

[$multiplayer_skins]
strict = true
stalker_killer_head_1 = tuple:u32,u32
stalker_killer_antigas = tuple:u32,u32
stalker_killer_head_3 = tuple:u32,u32
stalker_killer_mask = tuple:u32,u32
stalker_killer_exoskeleton = tuple:u32,u32
stalker_sci_killer = tuple:u32,u32
stalker_killer_military = tuple:u32,u32
stalker_sv_balon_10 = tuple:u32,u32
stalker_sv_hood_9 = tuple:u32,u32
stalker_sv_rukzak_3 = tuple:u32,u32
stalker_sv_rukzak_2 = tuple:u32,u32
stalker_sv_exoskeleton = tuple:u32,u32
stalker_sci_svoboda = tuple:u32,u32
stalker_sv_military = tuple:u32,u32
17 changes: 17 additions & 0 deletions src/engine/configs/$scheme/openxray.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[$openxray_environment]
strict = true
dynamic_sun_dir = bool
sun_dir_azimuth = f32

[$openxray_gameplay]
strict = true
actor_death_camera = enum:freelook,firsteye,fixedlook

[$openxray_lua_scripting]
strict = true
allow_nil_conversion = bool
allow_escape_sequences = bool

[$openxray_compatibility]
strict = true
game_mode = enum:cop,cs,shoc,unlock
6 changes: 6 additions & 0 deletions src/engine/configs/$scheme/scheme.ltx
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#include "base.scheme.ltx"
#include "camera.scheme.ltx"
#include "creatures.misc.scheme.ltx"
#include "creatures.monster.scheme.ltx"
#include "creatures.stalker.scheme.ltx"
#include "environment.scheme.ltx"
#include "fonts.scheme.ltx"
#include "game.scheme.ltx"
#include "game_relations.scheme.ltx"
#include "generic.scheme.ltx"
#include "items.scheme.ltx"
#include "multiplayer.scheme.ltx"
#include "openxray.scheme.ltx"
#include "script.scheme.ltx"
#include "weapons.scheme.ltx"
#include "zone.scheme.ltx"
7 changes: 7 additions & 0 deletions src/engine/configs/$scheme/script.scheme.ltx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[$script_definition]
strict = true
script = string
levels = ?string[]
class_registrators = ?string[]
game_type_clsid_factory = ?string[]
ui_type_clsid_factory = ?string[]
Loading

0 comments on commit 9c7bf08

Please sign in to comment.