SC_AngelScript
SC_AngelScript copied to clipboard
Sven Co-op AngelScript documentation, tutorials, sample code and tools
Hook pfnTouch for specific classname
I'd like to do things before or after the actual function is executed - just like AMXX.
**Scripts types:** Both Called when weapon is picked up. The weapon itself and the player picking it up should be passed in. The weapon id can be retrieved using `CBasePlayerWeapon.m_iId`,...
the current way of getting a Unique ID is unreliable: ```cpp string getFixedSteamId(CBasePlayer@ pPlayer) { if(pPlayer is null or !pPlayer.IsConnected()) return ""; string steamId = g_EngineFuncs.GetPlayerAuthId(pPlayer.edict()); if(steamId == 'STEAM_ID_LAN' or...