Page 1 of 1

Scripting Questions

Posted: Mon Apr 14, 2008 4:16 am
by SSFlame
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

Re: Scripting Questions

Posted: Mon Apr 14, 2008 4:29 pm
by QuestOfDreams
melee weapons don't use projectiles
melee weapon example:

Code: Select all

[Sword]
type = weapon
slot = 2
firerate = 0.46
catagory = melee
attribute = health
altattribute = health
damage = 2
altdamage = 2
ammunition = stamina
ammopershot = 1
attacksound = swordmiss.wav
hitsound = swordhit.wav
emptysound = swordmiss.wav
meleexplosion = RocketExplosion
;
; 1st person
;
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
;
; 3rd person
;
playeractor = psword.act
playerfillcolor = 128 128 128
playerambientcolor = 128 128 128
playerrotation = 0 180 0
playerscale = 1
shootup = Slash2
shootdwn = Slash1
aimup = SlashAim2
aimdwn = SlashAim1