Skip to content

Commit f8e814a

Browse files
authored
Merge pull request #921 from ReactiveDrop/feature/backpack-without-fcvar-cheat
remove the cheat flag from marine backpacks
2 parents f42d55b + b2da747 commit f8e814a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/game/client/swarm/c_asw_marine.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ ConVar rd_marine_explodes_into_gibs("rd_marine_explodes_into_gibs", "1", FCVAR_A
8080
ConVar rd_marine_gib_lifetime( "rd_marine_gib_lifetime", "36000.0", FCVAR_NONE, "number of seconds before marine gibs fade" );
8181
ConVar rd_marine_gib_lifetime_dm( "rd_marine_gib_lifetime_dm", "15.0", FCVAR_NONE, "number of seconds before marine gibs fade in deathmatch mode" );
8282
ConVar rd_marine_gib_spin( "rd_marine_gib_spin", "500", FCVAR_NONE, "how much do marine gibs spin?" );
83-
ConVar rd_client_marine_backpacks( "rd_client_marine_backpacks", "0", FCVAR_NONE, "Show marine's un-equipped weapon on their back." );
84-
ConVar rd_server_marine_backpacks( "rd_server_marine_backpacks", "0", FCVAR_REPLICATED | FCVAR_CHEAT, "Attach unactive weapon model to marine's back" );
83+
ConVar rd_client_marine_backpacks( "rd_client_marine_backpacks", "-1", FCVAR_NONE, "Show marine's un-equipped weapon on their back (0 = disabled, 1 = enabled, -1 = let the server pick)" );
84+
ConVar rd_server_marine_backpacks( "rd_server_marine_backpacks", "0", FCVAR_REPLICATED, "Attach unactive weapon model to marine's back" );
8585
ConVar rd_projected_texture_min_z( "rd_projected_texture_min_z", "-64", FCVAR_REPLICATED | FCVAR_CHEAT, "Projected textures that do not reach at least as high as this distance from the current marine's feet are considered non-visible." );
8686

8787
extern ConVar asw_DebugAutoAim;
@@ -2450,7 +2450,7 @@ void C_ASW_Marine::CreateShoulderCone()
24502450

24512451
void C_ASW_Marine::CreateBackpack( C_ASW_Weapon *pWeapon )
24522452
{
2453-
if ( !rd_client_marine_backpacks.GetBool() && !rd_server_marine_backpacks.GetBool() )
2453+
if ( rd_client_marine_backpacks.GetInt() == 0 || (rd_client_marine_backpacks.GetInt() == -1 && !rd_server_marine_backpacks.GetBool()) )
24542454
{
24552455
RemoveBackpack();
24562456
return;

src/game/server/swarm/asw_marine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extern ConVar rd_burning_interval;
117117
extern ConVar rd_burning_marine_damage;
118118
ConVar rd_marine_ff_fist_scale( "rd_marine_ff_fist_scale", "1", FCVAR_CHEAT, "Scale CLUB type damage done to marines (requires rd_ff_marine_fist)" );
119119

120-
ConVar rd_server_marine_backpacks("rd_server_marine_backpacks", "0", FCVAR_REPLICATED | FCVAR_CHEAT, "Attach unactive weapon model to marine's back");
120+
ConVar rd_server_marine_backpacks("rd_server_marine_backpacks", "0", FCVAR_REPLICATED, "Attach unactive weapon model to marine's back");
121121

122122
ConVar rda_marine_strafe_allow_air("rda_marine_strafe_allow_air", "0", FCVAR_CHEAT, "If set to 1 marine able to strafe jump once in the air");
123123
ConVar rda_marine_strafe_push_hor_velocity("rda_marine_strafe_push_hor_velocity", "520", FCVAR_CHEAT, "Horizontal velocity for strafe push");

0 commit comments

Comments
 (0)