1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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.

UE3 - UDK Fast Projectile and spawn particule location

Discussion in 'Programming' started by Jeremweb, Apr 9, 2015.

  1. Jeremweb

    Jeremweb New Member

    Joined:
    May 22, 2010
    Messages:
    9
    Likes Received:
    0
    Hello world !

    I try to make a simple plasma gun like Quake 3 Arena.
    But, when I test (dedicated server), the projectile spawn but the particle do not start at the MuzzleFlash Weapon.
    I mean that the particule appears after a certain distance depending on the speed.
    When the speed is low, all is good (speed < ~3000) but I want to have a speed like 15000.

    I have screenshots for details and as like you can see my weapons and my particle with impressive design ;)

    http://puu.sh/h7Nro/c6d5c6d5b7.png
    http://puu.sh/h7NIm/4a204b860e.png
    http://puu.sh/h7ROd/94a72016f1.png
    http://puu.sh/h7RPO/829e595c65.png

    The script is very simple :
    Code:
    class MAProj_Plasma extends UTProjectile;
    
    defaultproperties
    {
    ProjFlightTemplate=ParticleSystem'WP_TEST.Effects.P_WP_PLASMA'
    ExplosionDecal=MaterialInstanceTimeVarying'WP_RocketLauncher.Decals.MITV_WP_RocketLauncher_Impact_Decal01'
        ProjExplosionTemplate=ParticleSystem'WP_TEST.Effects.WP_ShotGunExplo'
        AmbientSound=SoundCue'A_Weapon_RocketLauncher.Cue.A_Weapon_RL_Travel_Cue'
        ExplosionSound=SoundCue'SoundCue'A_Weapon_Link.Cue.A_Weapon_Link_ImpactCue'
    
        DecalWidth=82
        DecalHeight=82
        speed=15000  
        MaxSpeed= 15000       
        Damage=10
        DamageRadius=5
        LifeSpan=5
        bCollideWorld=true
    }
    
    Someone have an explanation?
    Thanks for your help !
     
    Last edited: Apr 10, 2015
  2. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,913
    Likes Received:
    36
    How about starting at a much lower speed and having strong acceleration to quickly bring it up to the desired speed?
     
  3. Jeremweb

    Jeremweb New Member

    Joined:
    May 22, 2010
    Messages:
    9
    Likes Received:
    0
    My bad !
    Indeed, in that way it works!

    Code:
    speed=1  
    MaxSpeed= 25000    
    AccelRate = 100000  
    
    Thanks Wormbo !
     

Share This Page