PDA

View Full Version : [UT2004] Fire Effects ammo loss when zooming


Dark[NSF]
30th May 2004, 03:49 PM
Any idea why I might be having muzzle flash and loosing a bullet round when using zoom?

Here is my consume ammo function (also, if I have that one line uncommented it wont reduce the clip count :(

//Reduce ClipCount every time a bullet is fired. [CONVERSION]
simulated function bool ConsumeAmmo(int Mode, float load, optional bool bAmountNeededIsMax)
{
if( (ClipCount > 0) )
{
//if(Ammo[mode].UseAmmo(int(load), bAmountNeededIsMax)&&load>0)
ClipCount--;
}
return true;
}


It also might help to know this seems like a conversion problem, as it has only occured in UT2004.

Wormbo
30th May 2004, 03:54 PM
Have a look at the SniperZoom class or even use that as your WeaponFire class for the zoom "firing" mode.

Dark[NSF]
30th May 2004, 05:09 PM
why the hell am i using my own anyway... ugh, thanks ;0

Dark[NSF]
30th May 2004, 05:17 PM
However, thats not my problem ^^

Everytime I right click I end up getting muzzle flash and ammo loss yet no bullet.

dataangel
30th May 2004, 05:48 PM
I would guess the problem is in code you haven't posted, what all executes when you right click?