HTWeapon: Part 5 – Dealing Damage   Leave a comment

Video Version

Subject: HTWeapon: Part 5 – Dealing Damage
Skill Level: So easy a caveman can do it.
Run-Time: 5 minutes
Author: Michael Allar
Notes: How to make your weapon deal damage upon firing.

Streaming:     720×480 1920×1080

Download:     Low-Res (22MB) Hi-Res (27MB)

Written Version

Subject: HTWeapon: Part 5 – Dealing Damage
Skill Level: So easy a caveman can do it.
Author: Michael Allar
Notes: How to make your weapon deal damage upon firing.

Step 1: Modify your weapon’s defaultproperties block

defaultproperties
{
 // Weapon SkeletalMesh
 Begin Object Name=FirstPersonMesh
 SkeletalMesh=SkeletalMesh'ALWP_M16.Mesh.SK_WP_M16_1P'
 AnimSets(0)=AnimSet'ALWP_M16.Anims.K_WP_M16_1P'
 Scale=1.0
 FOV=60.0
 End Object

 // Pickup staticmesh
 Begin Object name=PickupMesh
 SkeletalMesh=SkeletalMesh'ALWP_M16.Mesh.SK_WP_M16_3P'
 End Object

 PlayerViewOffset=(X=17,Y=10.0,Z=-8.0)

//This is what we have added here.

AmmoCount=9001
 MaxAmmoCount=9001

 InstantHitDamage(0)=25.0
 InstantHitDamage(1)=500000.0
 InstantHitMomentum(0)=1000.0
 InstantHitMomentum(1)=1000000.0
}

Step 2: Done

Posted March 26, 2010 by Allar in Unreal

Tagged with , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>