Quote:
Originally Posted by Arkshine
Nobody can help you if you don't explain exactly what you want really to do, and what you have done exactly if there is a problem.
|
I'm trying to extend player primary and secondary weapon slots.
I want to make them holding multiple primary/secondary weapons.
i've got it working ExecuteHam(Ham_AddPlayerItem, ...) in touch forward, but when i drop weapons fast and pick up them in same time i get random crashes.
PHP Code:
Program received signal SIGINT, Interrupt.
0xb5655f60 in CWeaponBox::Touch(CBaseEntity *) ()
from /home/hlds/cstrike/dlls/cs_i386.so
(gdb) bt
#0 0xb5655f60 in CWeaponBox::Touch(CBaseEntity *) ()
from /home/hlds/cstrike/dlls/cs_i386.so
#1 0xb50bfb8c in Hook_Void_Cbase (hook=0x8f07da8, pthis=0x8fd3cb0,
other=0x8fcf4c8) at hook_callbacks.cpp:256
#2 0x08f08016 in ?? ()
#3 0xb55d5f21 in DispatchTouch(edict_s *, edict_s *) ()
from /home/hlds/cstrike/dlls/cs_i386.so
#4 0xb58198fb in mm_DispatchTouch(edict_s *, edict_s *) ()
from ./cstrike/addons/metamod/dlls/metamod_i386.so
#5 0xb5bc1c48 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) cmd_args
$9 = 0x0
It seems to be invalid entity or not assigned yet, is this a reason of the crash ? Too fast weapon drop and pick ?