Hey guys.... ...quick question.... Which part of my custom code edits the weapon range? As you can see in the image below, I am able to use my fire extinguisher to 'hit' a target from about 90ft, and probably more if i were able to get further back!! The image after that shows my custom weapon code (for projectile). Ive…
You should also adjust the TerminalVelocity float var, which I think is found in the UDKProjectile class. This will affect the drop-off trajectory the projectile will take, which greatly affects the range. Note: TerminalVelocity will only affect the Projectile if its physics are set to PHYS_Falling.
The object will die after 2 seconds (lifespan property) so either do as Butthair suggests, tweak the speed or lower the lifespan if the speed is right but you just want to lower the range. Edit: Just realized that you probably want to lessen the range not increase it.
Looks like you can play with Speed and MaxSpeed, they would control how fast it moves, therefore influences how far it would go before dying (I assume the projectile dies after a second). You also should check the root of this script you are extending. Look at UTProjectile, and see what it extends from and so on. Either…