Page 1 of 1

Make a knife (like rc)

Posted: Sat Oct 31, 2009 2:55 pm
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>

Re: Make a knife (like rc)

Posted: Sun Nov 01, 2009 12:19 pm
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.