Merge pull request #333 from diamante0018/scr_const

[Structs] Document scr_const_t
This commit is contained in:
Dss0 2022-06-26 13:28:24 +02:00 committed by GitHub
commit 1e354d29af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 265 additions and 0 deletions

View File

@ -596,6 +596,8 @@ namespace Game
int* com_errorPrintsCount = reinterpret_cast<int*>(0x1AD7910);
scr_const_t* scr_const = reinterpret_cast<scr_const_t*>(0x1AA2E00);
void Sys_LockRead(FastCriticalSection* critSect)
{
InterlockedIncrement(&critSect->readCount);

View File

@ -1231,6 +1231,8 @@ namespace Game
extern int* com_errorPrintsCount;
extern scr_const_t* scr_const;
void Sys_LockRead(FastCriticalSection* critSect);
void Sys_UnlockRead(FastCriticalSection* critSect);

View File

@ -5364,6 +5364,267 @@ namespace Game
static_assert(sizeof(scrVarPub_t) == 0x24060);
struct scr_const_t
{
scr_string_t _;
scr_string_t active;
scr_string_t aim_bone;
scr_string_t aim_highest_bone;
scr_string_t aim_vis_bone;
scr_string_t all;
scr_string_t allies;
scr_string_t angles;
scr_string_t auto_ai;
scr_string_t auto_nonai;
scr_string_t axis;
scr_string_t back;
scr_string_t bad_guys;
scr_string_t bad_path;
scr_string_t begin_firing;
scr_string_t begin_firing_left;
scr_string_t cancel_location;
scr_string_t chest;
scr_string_t confirm_location;
scr_string_t crouch;
scr_string_t current;
scr_string_t damage;
scr_string_t dead;
scr_string_t death;
scr_string_t deathshield;
scr_string_t detonate;
scr_string_t direct;
scr_string_t dlight;
scr_string_t done;
scr_string_t empty;
scr_string_t empty_offhand;
scr_string_t offhand_end;
scr_string_t end_firing;
scr_string_t end_firing_left;
scr_string_t entity;
scr_string_t explode;
scr_string_t failed;
scr_string_t first_person;
scr_string_t forward;
scr_string_t fraction;
scr_string_t free;
scr_string_t goal;
scr_string_t goal_changed;
scr_string_t goal_yaw;
scr_string_t grenade;
scr_string_t grenadedanger;
scr_string_t grenade_fire;
scr_string_t glass_destroyed;
scr_string_t missile_fire;
scr_string_t grenade_pullback;
scr_string_t missile_stuck;
scr_string_t info_notnull;
scr_string_t invisible;
scr_string_t key1;
scr_string_t key2;
scr_string_t killanimscript;
scr_string_t left;
scr_string_t light;
scr_string_t manual;
scr_string_t manual_ai;
scr_string_t movedone;
scr_string_t none;
scr_string_t normal;
scr_string_t origin;
scr_string_t other;
scr_string_t player;
scr_string_t physics_finished;
scr_string_t position;
scr_string_t projectile_impact;
scr_string_t prone;
scr_string_t right;
scr_string_t reload;
scr_string_t reload_start;
scr_string_t result;
scr_string_t reverse;
scr_string_t rocket;
scr_string_t rotatedone;
scr_string_t script_brushmodel;
scr_string_t script_model;
scr_string_t script_origin;
scr_string_t sentry;
scr_string_t sentry_offline;
scr_string_t snd_enveffectsprio_level;
scr_string_t snd_enveffectsprio_shellshock;
scr_string_t snd_channelvolprio_holdbreath;
scr_string_t snd_channelvolprio_pain;
scr_string_t snd_channelvolprio_shellshock;
scr_string_t spawned;
scr_string_t stand;
scr_string_t suppression;
scr_string_t suppression_end;
scr_string_t surfacetype;
scr_string_t tag_aim;
scr_string_t tag_aim_animated;
scr_string_t tag_aim_pivot;
scr_string_t tag_brass;
scr_string_t tag_butt;
scr_string_t tag_clip;
scr_string_t tag_eye;
scr_string_t tag_flash;
scr_string_t tag_flash_silenced;
scr_string_t tag_flash_11;
scr_string_t tag_flash_2;
scr_string_t tag_flash_22;
scr_string_t tag_flash_3;
scr_string_t tag_fx;
scr_string_t tag_inhand;
scr_string_t tag_knife_fx;
scr_string_t tag_laser;
scr_string_t tag_origin;
scr_string_t tag_weapon;
scr_string_t tag_player;
scr_string_t tag_camera;
scr_string_t tag_weapon_left;
scr_string_t tag_weapon_right;
scr_string_t tag_weapon_chest;
scr_string_t tag_stowed_back;
scr_string_t tag_gasmask;
scr_string_t tag_gasmask2;
scr_string_t tag_sync;
scr_string_t tag_motion_tracker_tl;
scr_string_t tag_motion_tracker_bl;
scr_string_t tag_motion_tracker_br;
scr_string_t tag_motion_tracker_fx;
scr_string_t tag_reticle_acog;
scr_string_t tag_reticle_red_dot;
scr_string_t tag_reticle_tavor_scope;
scr_string_t tag_reticle_thermal_scope;
scr_string_t tag_eotech_reticle;
scr_string_t target_script_trigger;
scr_string_t third_person;
scr_string_t top;
scr_string_t touch;
scr_string_t trigger;
scr_string_t trigger_use;
scr_string_t trigger_use_touch;
scr_string_t trigger_damage;
scr_string_t truck_cam;
scr_string_t weapon_change;
scr_string_t weapon_fired;
scr_string_t weapon_switch_started;
scr_string_t weapon_taken;
scr_string_t weapon_dropped;
scr_string_t worldspawn;
scr_string_t flashbang;
scr_string_t flash;
scr_string_t smoke;
scr_string_t frag;
scr_string_t throwingknife;
scr_string_t night_vision_on;
scr_string_t night_vision_off;
scr_string_t mod_unknown;
scr_string_t mod_pistol_bullet;
scr_string_t mod_rifle_bullet;
scr_string_t mod_explosive_bullet;
scr_string_t mod_grenade;
scr_string_t mod_grenade_splash;
scr_string_t mod_projectile;
scr_string_t mod_projectile_splash;
scr_string_t mod_melee;
scr_string_t mod_head_shot;
scr_string_t mod_crush;
scr_string_t mod_falling;
scr_string_t mod_suicide;
scr_string_t mod_trigger_hurt;
scr_string_t mod_explosive;
scr_string_t mod_impact;
scr_string_t script_vehicle;
scr_string_t script_vehicle_collision;
scr_string_t script_vehicle_collmap;
scr_string_t script_vehicle_corpse;
scr_string_t turret_deactivate;
scr_string_t turret_fire;
scr_string_t turret_no_vis;
scr_string_t turret_not_on_target;
scr_string_t turret_on_target;
scr_string_t turret_on_vistarget;
scr_string_t turret_pitch_clamped;
scr_string_t turret_rotate_stopped;
scr_string_t turret_yaw_clamped;
scr_string_t turretstatechange;
scr_string_t turretownerchange;
scr_string_t reached_end_node;
scr_string_t reached_wait_node;
scr_string_t reached_wait_speed;
scr_string_t near_goal;
scr_string_t tag_wheel_front_left;
scr_string_t tag_wheel_front_right;
scr_string_t tag_wheel_back_left;
scr_string_t tag_wheel_back_right;
scr_string_t tag_wheel_middle_left;
scr_string_t tag_wheel_middle_right;
scr_string_t tag_detach;
scr_string_t tag_popout;
scr_string_t tag_body;
scr_string_t tag_turret;
scr_string_t tag_turret_base;
scr_string_t tag_barrel;
scr_string_t front_left;
scr_string_t front_right;
scr_string_t back_left;
scr_string_t back_right;
scr_string_t middle_left;
scr_string_t middle_right;
scr_string_t veh_boatbounce;
scr_string_t veh_collision;
scr_string_t veh_predictedcollision;
scr_string_t veh_leftground;
scr_string_t veh_landed;
scr_string_t veh_jolt;
scr_string_t vehicle_mount;
scr_string_t vehicle_dismount;
scr_string_t constrained;
scr_string_t follow;
scr_string_t j_head;
scr_string_t j_neck;
scr_string_t thermal;
scr_string_t primary;
scr_string_t offhand;
scr_string_t item;
scr_string_t altmode;
scr_string_t exclusive;
scr_string_t scavenger;
scr_string_t primaryoffhand;
scr_string_t secondaryoffhand;
scr_string_t actionslot1;
scr_string_t actionslot2;
scr_string_t actionslot3;
scr_string_t actionslot4;
scr_string_t back_low;
scr_string_t back_mid;
scr_string_t back_up;
scr_string_t pelvis;
scr_string_t auto_change;
scr_string_t begin;
scr_string_t call_vote;
scr_string_t freelook;
scr_string_t intermission;
scr_string_t j_mainroot;
scr_string_t manual_change;
scr_string_t menuresponse;
scr_string_t pistol;
scr_string_t plane_waypoint;
scr_string_t playing;
scr_string_t spectator;
scr_string_t spectating_cycle;
scr_string_t vote;
scr_string_t sprint_begin;
scr_string_t sprint_end;
scr_string_t normal_radar;
scr_string_t fast_radar;
scr_string_t tag_engine_left;
scr_string_t tag_engine_right;
scr_string_t slowmo_active;
scr_string_t slowmo_passive;
};
static_assert(sizeof(scr_const_t) == 0x1FE);
enum UILocalVarType
{
UILOCALVAR_INT = 0x0,