View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 11-30-2010 , 10:28   Re: [Alien Swarm] Finding current equipped weapon name
Reply With Quote #20

Quote:
Originally Posted by comp_noob View Post
1st error:
PHP Code:
L 11/30/2010 23:06:57: [SMNative "EntIndexToEntRef" reportedInvalid entity index -1
L 11
/30/2010 23:06:57: [SMDisplaying call stack trace for plugin "swarmtools.smx":
L 11/30/2010 23:06:57: [SM]   [0]  Line 72swarmtools.sp::GetMarineResources()
L 11/30/2010 23:06:57: [SM]   [1]  Line 45swarmtools.sp::OnMapStart() 
and after this error, all the other natives return the wrong value of -1...
and i've found out that m_iClip1 returns the correct current ammo in the active weapon... maybe it can be of some help..
The clip amount is the amount if ammo in the weapon's clip. The ammo stocks set the players ammo stock for that weapon (what is used when the clip runs out).

Post is updated again, version 1.1.2. I had some misconceptions about how/when the marine resources were allocated. I was able the mix the first method I was using with sdkhooks with the later findings. It should work now and still not require sdkhooks.

I do appreciate the time you're taking to test for me.
psychonic is offline