Make a knife (like rc)

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
eliminator
Second Lance Corporal
Second Lance Corporal
Posts: 118
Joined: Wed Aug 19, 2009 3:39 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany

Make a knife (like rc)

Post by eliminator »

Hi,
how can i make a knife? When i attack somebody with this (odf hide) i hurt myself, how can i make the knife don't hurt me? it?
Heres my odf:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "repair"

[Properties]

Discharge = "small_smoke_effect"

HurtOwner = 0 //this don't work (!?)

RoundsPerClip = "1"
ReloadTime = "0.001"
HeatRecoverRate = "0.0"
HeatThreshold = "0.0"

AnimationBank = "tool"
FirePointName = "hp_fire"

ShotDelay = 0.0
TriggerSingle = "0"
HeatPerShot = "0.0"

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "0"
TargetDroid = "0"
TargetVehicle = "0"
TargetBuilding = "0"
TargetMine = "0"

LockOnRange = 4.0
LockOnAngle = 90.0

VehicleHealth = 200
BuildingHealth = 100
BuildingBuild = 50
BuildingRebuild = 50
PowerupDelay = "0.1" //<delay time, default 0.5>
SoldierHealth = "-500.0" //<health to add, default 0.0>
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Make a knife (like rc)

Post by bobfinkl »

eliminator wrote:HurtOwner = 0 //this don't work (!?)
Of course it doesn't work the function doesn't exist
eliminator wrote:VehicleHealth = 200
BuildingHealth = 100
BuildingBuild = 50
BuildingRebuild = 50
PowerupDelay = "0.1" //<delay time, default 0.5>
SoldierHealth = "-500.0" //<health to add, default 0.0>
And what's all this, none of what you intended this to be belongs in this odf it should be in the _ord, I suggest taking a look at how weapon odfs work before trying to make this. Or download the one from BFX assets.
Post Reply