I'll try to keep this one short.
I created a "new" gun... again. It's just a modified STG firing modified Panzerfaust rounds, with a modified ammo amount (5 instead of 32). I have all of the appropriate .uc files modified/syntactically correct, including the ones for ammo, ammopickup, and ammopouch.
Everything compiles just fine, 0 errors. Had to work a few out, mind you, but no errors. I then proceeded to quickly edit a map and allow this gun as a spawnable class.
Now, here's where the weirdness begins. If I spawn as a different class, drop my gun, and summon the new gun, I can pick it up with the correct text display/etc. However, if I summon the ammopickup for the gun, it appears, but when I pick it up.. nothing happens. I get a "you got the ammo" message, but my clip counter stays at 0. I can pick up 10 ammo pouches, still no ammo. If I drop my gun after picking them up, no ammo appears alongside the gun.
On the other hand, if I spawn as a player with the gun, the gun is there, ammo intact, and proper number of clips are present. It can fire and reload just fine. Yet, if I summon the ammo pack, picking it up gives no ammo. If I drop the gun I spawned with, an ammo pouch falls to the ground, same name/messages/etc. as the ones you summon.. yet I can re-pick it up and recieve ammo AND I can pick it up with a summoned gun and recieve ammo.
It sounds vaguely like my AmmoPickup class has some zany error in it.. but if that was the case, how can I drop ammo from the gun I spawned with and pick it back up, since that counts as an ammo pickup ?
I created a "new" gun... again. It's just a modified STG firing modified Panzerfaust rounds, with a modified ammo amount (5 instead of 32). I have all of the appropriate .uc files modified/syntactically correct, including the ones for ammo, ammopickup, and ammopouch.
Everything compiles just fine, 0 errors. Had to work a few out, mind you, but no errors. I then proceeded to quickly edit a map and allow this gun as a spawnable class.
Now, here's where the weirdness begins. If I spawn as a different class, drop my gun, and summon the new gun, I can pick it up with the correct text display/etc. However, if I summon the ammopickup for the gun, it appears, but when I pick it up.. nothing happens. I get a "you got the ammo" message, but my clip counter stays at 0. I can pick up 10 ammo pouches, still no ammo. If I drop my gun after picking them up, no ammo appears alongside the gun.
On the other hand, if I spawn as a player with the gun, the gun is there, ammo intact, and proper number of clips are present. It can fire and reload just fine. Yet, if I summon the ammo pack, picking it up gives no ammo. If I drop the gun I spawned with, an ammo pouch falls to the ground, same name/messages/etc. as the ones you summon.. yet I can re-pick it up and recieve ammo AND I can pick it up with a summoned gun and recieve ammo.
It sounds vaguely like my AmmoPickup class has some zany error in it.. but if that was the case, how can I drop ammo from the gun I spawned with and pick it back up, since that counts as an ammo pickup ?