Weaponent touch
what does it do ?
Code:
#define OFFSET_PRIMARYWEAPON 1162: if i want block take weapon from gun room and pick up should i add this: Code:
RegisterHam( Ham_Touch, "armoury_entity", "Ham_WeaponTouch_Pre", 0 );Code:
if( !is_user_alive( client ) )Code:
get_players (iPlayers, iNum, "aceh", "TERRORIST");Code:
get_players (iPlayers, iNum, "ae", "TERRORIST");if ( g_iCurrentDay == DAY_NONE ) EDIT: get warning Code:
static iPlayers[ 32 ], iNum;Code:
Warning: Expression has no effect |
Re: Weaponent touch
1.OFFSET_PRIMARYWEAPON seems to be m_fHasPrimary. The bug is that you can't pickup armoury entities ? Then yes, depending on how you will use it. But this bug is fixed: https://github.com/ValveSoftware/halflife/issues/1 If it's not fixed for you update your HLDS.
2.https://forums.alliedmods.net/showthread.php?t=235139 3.http://amxmodx.org/api/amxmodx/get_players 4.== is used to check if something is equal to something, if you want to give values use just =. |
Re: Weaponent touch
Quote:
but about 2: what different from Code:
RegisterHam( Ham_TouchCode:
register_touch("armoury_entity" |
| All times are GMT -4. The time now is 22:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.