Skip to content

Commit

Permalink
Attempt at fixing crash with v_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordy committed Feb 27, 2022
1 parent 89c160a commit 801d302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/maps/cof/cofcommon.as
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ HookReturnCode cof_PlayerPreThink( CBasePlayer@ pPlayer, uint& out uiFlags )
{
if( pPlayer.m_hActiveItem.GetEntity() is null )
{
pPlayer.GiveNamedItem( "v_action" );
pPlayer.SelectItem( "v_action" );
pPlayer.GiveNamedItem( "weapon_cofaction" );
pPlayer.SelectItem( "weapon_cofaction" );
}
return HOOK_CONTINUE;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/maps/cof/special/v_actions.as
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,6 @@ class v_action : ScriptBasePlayerWeaponEntity, weapon_base
void RegisterCoFACTIONS()
{
//g_Scheduler.ClearTimerList();
g_CustomEntityFuncs.RegisterCustomEntity( "v_action", "v_action" );
g_CustomEntityFuncs.RegisterCustomEntity( "v_action", "weapon_cofaction" );
g_ItemRegistry.RegisterWeapon( "v_action", "cof" );
}

0 comments on commit 801d302

Please sign in to comment.