Tracefire to projectile fire problems

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Euphoric Beaver

impeccably groomed
Apr 19, 2001
3,158
0
0
Great Britain
www.euphoric-beaver.me.uk
I'm trying to turn the sniper rifle to fire a projectile in the primary fire.
But after fiddling with it when you first fire it, it fires but no projectile spawns but keeping hold of fire after that works. :hmm:

Can anyone help it fire the projectile all the time?
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
Try removing the Fire() function. The original Sniper Rifle works without it and so will your modification.
TournamentWeapon already has a multifunctional version of the Fire() function.
 

Brood_of_Evil

Selene's martyr
Nov 3, 2001
147
0
0
45
Look outside your window!
Visit site
Well if you're turning a non projectile weapon to a projectile weapon the first thing you need to do is set bIntantHit to false, if you don't override the Fire() function AND bInstantHit is set to true the parent Weapon class will call TraceHit() and will do a trace fire instead of spawning the projectile class.
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
Chaos UT has a sniper rifle with projectiles.

I don't have the Chaos UT .uc file at the moment, but my Enhanced Items remake of it doesn't differ much. Maybe you can find your answers in EI_Sniper2.uc. It extends from EI_SniperRifle, which is equivalent to Botpack.SniperRifle.