Demestotenes
06-25-2010, 02:00 PM
A falling grenade projectile works on UTProjectile but not on UDKProjectile.
What needs to be done to make UDKProjectile fall?
UTProj_Grenade:
defaultproperties
{
ProjFlightTemplate=ParticleSystem'WP_RocketLaunche r.Effects.P_WP_RocketLauncher_Smoke_Trail'
ProjExplosionTemplate=ParticleSystem'WP_RocketLaun cher.Effects.P_WP_RocketLauncher_RocketExplosion'
ExplosionLightClass=class'UTGame.UTRocketExplosion Light'
speed=700
MaxSpeed=1000.0
Damage=100.0
DamageRadius=200
MomentumTransfer=50000
MyDamageType=class'UTDmgType_Grenade'
LifeSpan=0.0
ExplosionSound=SoundCue'A_Weapon_RocketLauncher.Cu e.A_Weapon_RL_Impact_Cue'
ExplosionDecal=MaterialInstanceTimeVarying'WP_Rock etLauncher.Decals.MITV_WP_RocketLauncher_Impact_De cal01'
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.
What needs to be done to make UDKProjectile fall?
UTProj_Grenade:
defaultproperties
{
ProjFlightTemplate=ParticleSystem'WP_RocketLaunche r.Effects.P_WP_RocketLauncher_Smoke_Trail'
ProjExplosionTemplate=ParticleSystem'WP_RocketLaun cher.Effects.P_WP_RocketLauncher_RocketExplosion'
ExplosionLightClass=class'UTGame.UTRocketExplosion Light'
speed=700
MaxSpeed=1000.0
Damage=100.0
DamageRadius=200
MomentumTransfer=50000
MyDamageType=class'UTDmgType_Grenade'
LifeSpan=0.0
ExplosionSound=SoundCue'A_Weapon_RocketLauncher.Cu e.A_Weapon_RL_Impact_Cue'
ExplosionDecal=MaterialInstanceTimeVarying'WP_Rock etLauncher.Decals.MITV_WP_RocketLauncher_Impact_De cal01'
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.