From 801d302c4ce725260a77d32344f1c0bab68cd29f Mon Sep 17 00:00:00 2001 From: Jordy Date: Sun, 27 Feb 2022 01:26:34 -0300 Subject: [PATCH] Attempt at fixing crash with v_actions --- scripts/maps/cof/cofcommon.as | 4 ++-- scripts/maps/cof/special/v_actions.as | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/maps/cof/cofcommon.as b/scripts/maps/cof/cofcommon.as index 7d4a154..2ecd0ba 100644 --- a/scripts/maps/cof/cofcommon.as +++ b/scripts/maps/cof/cofcommon.as @@ -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; } diff --git a/scripts/maps/cof/special/v_actions.as b/scripts/maps/cof/special/v_actions.as index e051678..9326196 100644 --- a/scripts/maps/cof/special/v_actions.as +++ b/scripts/maps/cof/special/v_actions.as @@ -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" ); } \ No newline at end of file