hi all-
i want to extend class Weapon to create a multimode weapon. in my first attempt, i have discovered that i do not understand how the weapon system works. i have read the description of the weapon firing process. of particular interest to me is the comment by Dante at the bottom of the page:
does anyone know what conditions must be met for the engine to call Weapon.ClientStartFire? the reason i ask is, in my first attempt, i subclassed Weapon and replaced references to the 'FireMode' array with references to a dynamic array and explicitly set FireMode[0] and FireMode[1] to 'none'. when this is done, the engine never calls 'ClientStartFire'. so, i am assuming that the engine is looking at the 'WeaponFire' in FireMode[0] or FireMode[1] to determine if ClientStartFire should be called. can anyone confirm this?
if so, i will have to maintain my list of WeaponFire's and move them into the FireMode array when appropriate.
thanks,
codepig
i want to extend class Weapon to create a multimode weapon. in my first attempt, i have discovered that i do not understand how the weapon system works. i have read the description of the weapon firing process. of particular interest to me is the comment by Dante at the bottom of the page:
Dante: It seems as if UT is calling Weapon.ClientStartFire/Weapon.ServerStartFire which sets WeaponFire.bIsFiring = true (in Weapon.StartFire) which might be the trigger to call modeDoFire.
does anyone know what conditions must be met for the engine to call Weapon.ClientStartFire? the reason i ask is, in my first attempt, i subclassed Weapon and replaced references to the 'FireMode' array with references to a dynamic array and explicitly set FireMode[0] and FireMode[1] to 'none'. when this is done, the engine never calls 'ClientStartFire'. so, i am assuming that the engine is looking at the 'WeaponFire' in FireMode[0] or FireMode[1] to determine if ClientStartFire should be called. can anyone confirm this?
if so, i will have to maintain my list of WeaponFire's and move them into the FireMode array when appropriate.
thanks,
codepig