Announcement
Collapse
No announcement yet.
Can't seem to replace rocket launcher explosion particle. Please Help!
Collapse
X
-
Hayrack repliedI'm not a coder but...
Sometimes problem might not be in the code but in the way game effects are set up.
1) In material editor, under ''Usage'' make sure you have ''bUsedWithParticleSprites'', ''bUsedWithBeamTrails'', ''bUsedWithParticleSubUV'' checked.
2) In material tree, you should have ''VertexColor'' expression assigned somewhere, f.e. connected with the rest of setup via ''Multiply'' expression.
3) In Cascade, under emitter, ''Initial Color" or ''Color Over Life'' module should be added. Without these, particles won't show up in realtime. (it was so annoying, till i found a solution ).
Leave a comment:
-
Can't seem to replace rocket launcher explosion particle. Please Help!
I created a new particle for the rocket launcher explosion. I replaced it in code and I when I tried it out. As soon the rocket hit impact, there is no explosion at all, and I still get hurt by the radius and damage but everything else is invisible.
Here is the code for the Weapon and the Projectile:
UTWeap_WebSplitter:
Code:class UTWeap_WebSplitter extends UTWeap_RocketLauncher; simulated function SetSkin(Material NewMaterial) { Super.SetSkin(NewMaterial); Mesh.SetMaterial(0, Material'WP_Beta_Project_Obliteration.Materials.M_WP_WebSplitter'); } defaultproperties { Begin Object Name=FirstPersonMesh SkeletalMesh=SkeletalMesh'WP_RocketLauncher.Mesh.SK_WP_RocketLauncher_1P' PhysicsAsset=None AnimTreeTemplate=AnimTree'WP_RocketLauncher.Anims.AT_WP_RocketLauncher_1P_Base' AnimSets(0)=AnimSet'WP_RocketLauncher.Anims.K_WP_RocketLauncher_1P_Base' Translation=(X=0,Y=0,Z=0) Rotation=(Yaw=0) scale=1.0 FOV=60.0 Materials(0)=Material'WP_Beta_Project_Obliteration.Materials.M_WP_WebSplitter' End Object WeaponProjectiles(0)=class'Project_Obliteration_Weapons.UTProj_WebSplitter' WeaponProjectiles(1)=class'Project_Obliteration_Weapons.UTProj_WebSplitter' AttachmentClass=class'Project_Obliteration_Weapons.UTAttachment_WebSplitter' // Pickup staticmesh Begin Object Name=PickupMesh SkeletalMesh=SkeletalMesh'WP_RocketLauncher.Mesh.SK_WP_RocketLauncher_3P' Materials(0)=Material'WP_Beta_Project_Obliteration.Materials.M_WP_WebSplitter' End Object AmmoCount=5 LockerAmmoCount=10 MaxAmmoCount=18 ItemName="Web Splitter" PickupMessage="Web Splitter" }
UTProj_WebSplitter:
Code:class UTProj_WebSplitter extends UTProj_Rocket; defaultproperties { ProjFlightTemplate=ParticleSystem'WP_RocketLauncher.Effects.P_WP_RocketLauncher_RocketTrail' ProjExplosionTemplate=ParticleSystem'WP_Beta_Project_Obliteration.Particles.P_WP_RocketExplosion' ExplosionDecal=MaterialInstanceTimeVarying'WP_RocketLauncher.Decals.MITV_WP_RocketLauncher_Impact_Decal01' DecalWidth=256.0 DecalHeight=256.0 speed=1350.0 MaxSpeed=1350.0 Damage=160.0 DamageRadius=440.0 MomentumTransfer=85000 MyDamageType=class'UTDmgType_Rocket' LifeSpan=8.0 AmbientSound=SoundCue'A_Weapon_RocketLauncher.Cue.A_Weapon_RL_Travel_Cue' ExplosionSound=SoundCue'A_Weapon_RocketLauncher.Cue.A_Weapon_RL_Impact_Cue' RotationRate=(Roll=50000) DesiredRotation=(Roll=30000) bCollideWorld=true CheckRadius=84.0 bCheckProjectileLight=true ProjectileLightClass=class'UTGame.UTRocketLight' ExplosionLightClass=class'UTGame.UTRocketExplosionLight' bWaitForEffects=true bAttachExplosionToVehicles=false bAttachExplosionToPawns=false }
Tags: None
Leave a comment: