Results 1 to 4 of 4
  1. #1
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    128

    Default Grenade on UDKProjectile

    A falling grenade projectile works on UTProjectile but not on UDKProjectile.
    What needs to be done to make UDKProjectile fall?

    UTProj_Grenade:
    Code:
    defaultproperties
    {
    	ProjFlightTemplate=ParticleSystem'WP_RocketLauncher.Effects.P_WP_RocketLauncher_Smoke_Trail'
    
    	ProjExplosionTemplate=ParticleSystem'WP_RocketLauncher.Effects.P_WP_RocketLauncher_RocketExplosion'
    	ExplosionLightClass=class'UTGame.UTRocketExplosionLight'
    
    	speed=700
    	MaxSpeed=1000.0
    	Damage=100.0
    	DamageRadius=200
    	MomentumTransfer=50000
    	MyDamageType=class'UTDmgType_Grenade'
    	LifeSpan=0.0
    	ExplosionSound=SoundCue'A_Weapon_RocketLauncher.Cue.A_Weapon_RL_Impact_Cue'
    	ExplosionDecal=MaterialInstanceTimeVarying'WP_RocketLauncher.Decals.MITV_WP_RocketLauncher_Impact_Decal01'
    	DecalWidth=128.0
    	DecalHeight=128.0
    	bCollideWorld=true
    	bBounce=true
    	TossZ=+245.0
    	Physics=PHYS_Falling
    	CheckRadius=36.0
    
    	ImpactSound=SoundCue'A_Weapon_RocketLauncher.Cue.A_Weapon_RL_GrenadeFloor_Cue'
    
    	bNetTemporary=False
    	bWaitForEffects=false
    
    	CustomGravityScaling=0.5
    }
    CustomGravityScaling is declared in UDKProjectile.
    But when i put those defaultproperties to a class extended from UDKProjectile, it will not move, even when i manually set its velocity ( Velocity = dir * Speed )
    Probably UDKProjectile does not move with PHYS_Falling (or is it something else?)

    Has anyone successfully made a falling projectile on UDKProjectile?
    I would be thankful for help.

  2. #2
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    128

    Default

    When i set the physics to PHYS_Projectile and then set Acceleration, it will fall.
    However, the acceleration is not replicated to clients.
    Should i add a replication block with 'Acceleration'?

  3. #3
    Iron Guard
    Join Date
    Dec 2009
    Location
    Ontario, Canada
    Posts
    632

    Default

    The only real difference I can see between your Def. Properties and mine is.

    bBlockedByInstigator=false
    TerminalVelocity=3500.0

    And yes, I have a working Grenade and all my projectiles are based on UDKProjectile.
    Last edited by Wizzard~Of~Ozz; 06-26-2010 at 11:01 AM.
    Mike

  4. #4
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    128

    Default

    Quote Originally Posted by Wizzard~Of~Ozz View Post
    The only real difference I can see between your Def. Properties and mine is.

    bBlockedByInstigator=false
    TerminalVelocity=3500.0

    And yes, I have a working Grenade and all my projectiles are based on UDKProjectile.
    Thx very much for help.
    Now it falls correctly.
    Your lines are added in UTProjectile, so UTProj_Grenade inherits them and i didnt see them.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.