Scripting Questions
Posted: Mon Apr 14, 2008 4:16 am
hey guys is this the right way to write a sword in the weapon.ini folder and i got one question since my sword doesn't have a projectile to i need to make one or leave the sword without a projectile
[sword]
type = weapon
slot = 5
firerate = 0.25
catagory = melee
attribute = health
damage = 20
ammunition = stamina
ammopershot = 4
attacksound = swordmiss.wav
hitsound = swordhit.wav
emptysound = swordmiss.wav
viewactor = vsword.act
viewfillcolor = 128 128 128
viewambientcolor = 128 128 128
viewrotation = -3.1 82 -3.1
viewoffset = -1.3 -1.5 -0.9
viewscale = 0.23
viewanimspeed = 1
viewarmanim = Arm
viewidleanim = Idle
viewattackanim = Shoot
viewaltattackanim = Shoot1
viewhitanim = Hit
viewalthitanim = Hit1
viewwalkanim = Walk
; 1st person
;
viewactor = Weapon\Sword.act
viewfillcolor = 0 0 0
viewambientcolor = 0 0 0
viewrotation = -93.1 182 -3.1
viewoffset = -1.3 -1.5 -0.9
viewscale = 0.23
viewanimspeed = 1
viewarmanim = Idle
viewidleanim = Idle
viewattackanim = Idle
viewaltattackanim = Idle
viewhitanim = Idle
viewalthitanim = Idle
viewwalkanim = Idle
; 3rd person
;
playeractor = Weapon\sword.act
playerfillcolor = 255 255 255
playerambientcolor = 0 0 0
playerrotation = -90 180 0
playerscale = 1
playerlaunchoffset = 0 0 10
playerbone = BIP01 R HAND
ambientlightfromfloor = true
[sword]
type = weapon
slot = 5
firerate = 0.25
catagory = melee
attribute = health
damage = 20
ammunition = stamina
ammopershot = 4
attacksound = swordmiss.wav
hitsound = swordhit.wav
emptysound = swordmiss.wav
viewactor = vsword.act
viewfillcolor = 128 128 128
viewambientcolor = 128 128 128
viewrotation = -3.1 82 -3.1
viewoffset = -1.3 -1.5 -0.9
viewscale = 0.23
viewanimspeed = 1
viewarmanim = Arm
viewidleanim = Idle
viewattackanim = Shoot
viewaltattackanim = Shoot1
viewhitanim = Hit
viewalthitanim = Hit1
viewwalkanim = Walk
; 1st person
;
viewactor = Weapon\Sword.act
viewfillcolor = 0 0 0
viewambientcolor = 0 0 0
viewrotation = -93.1 182 -3.1
viewoffset = -1.3 -1.5 -0.9
viewscale = 0.23
viewanimspeed = 1
viewarmanim = Idle
viewidleanim = Idle
viewattackanim = Idle
viewaltattackanim = Idle
viewhitanim = Idle
viewalthitanim = Idle
viewwalkanim = Idle
; 3rd person
;
playeractor = Weapon\sword.act
playerfillcolor = 255 255 255
playerambientcolor = 0 0 0
playerrotation = -90 180 0
playerscale = 1
playerlaunchoffset = 0 0 10
playerbone = BIP01 R HAND
ambientlightfromfloor = true