Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra: Ostfront 41-45 Forums > Red Orchestra Modifications > Coding

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-09-2006, 01:01 AM
ToiletDuckie ToiletDuckie is offline
Member
 
Join Date: Aug 2006
Posts: 59
Default Weapon/Ammo Pickup glitch(?)

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 ?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC