Third Person Weapon
Posted: Mon Nov 21, 2005 4:26 pm
hi,
i have a problem.i want to make a 3rd Person Weapon.
In 1st Person,it is already good, but it wont be attach to the player.
when i jump,the weaponis at the one position.its the same with shooting,idling,walking,running.
Hera are the Definitions.(They are from RF072 (not 072A))
;
; 9mm AR pistol
;
; This will only appear as a first person view weapon
;
[9mmAR]
type = weapon
slot = 2
firerate = 0.25
catagory = projectile
projectile = pistolbullet
attribute = health
ammunition = pistolbullet
ammopershot = 1
shotpermagazine = 10
loosemag = true
worksunderwater = true
attacksound = weapon\bulletfire.wav
reloadsound = weapon\reload3.wav
emptysound = weapon\click.wav
muzzleflash = PMuzzleFlash
;
; 1st person
;
viewactor = weapon\v9mmar.act
viewfillcolor = 128 128 128
viewambientcolor = 128 128 128
viewrotation = -8 97.8 30.4
viewoffset = 3.1 -2.3 -2.4
viewscale = 0.3
viewlaunchoffset = 0 0 0
viewanimspeed = 1
viewarmanim = Arm
viewidleanim = Idle
viewattackanim = Shoot
viewwalkanim = Walk
viewreloadanim = Reload
viewkeyreloadanim = Reload
viewattackemptyanim = Shoot
viewlaunchbone = bang
crosshair = crosshairs\pistol.bmp
crosshairalpha = crosshairs\a_pistol.bmp
crosshairfixed = false
recoilamount = 5
recoildecay = 10
;
; 3rd person
;
playeractor = weapon\p9mmar.act
playerfillcolor = 128 128 128
playerambientcolor = 128 128 128
playerrotation = 0 180 0
playerscale = 1
playerlaunchoffset = 0 0 10
playerbone = Line02
Is the playerbone entry the bone from the weapon or from the player???
Thanks Lukas
i have a problem.i want to make a 3rd Person Weapon.
In 1st Person,it is already good, but it wont be attach to the player.
when i jump,the weaponis at the one position.its the same with shooting,idling,walking,running.
Hera are the Definitions.(They are from RF072 (not 072A))
;
; 9mm AR pistol
;
; This will only appear as a first person view weapon
;
[9mmAR]
type = weapon
slot = 2
firerate = 0.25
catagory = projectile
projectile = pistolbullet
attribute = health
ammunition = pistolbullet
ammopershot = 1
shotpermagazine = 10
loosemag = true
worksunderwater = true
attacksound = weapon\bulletfire.wav
reloadsound = weapon\reload3.wav
emptysound = weapon\click.wav
muzzleflash = PMuzzleFlash
;
; 1st person
;
viewactor = weapon\v9mmar.act
viewfillcolor = 128 128 128
viewambientcolor = 128 128 128
viewrotation = -8 97.8 30.4
viewoffset = 3.1 -2.3 -2.4
viewscale = 0.3
viewlaunchoffset = 0 0 0
viewanimspeed = 1
viewarmanim = Arm
viewidleanim = Idle
viewattackanim = Shoot
viewwalkanim = Walk
viewreloadanim = Reload
viewkeyreloadanim = Reload
viewattackemptyanim = Shoot
viewlaunchbone = bang
crosshair = crosshairs\pistol.bmp
crosshairalpha = crosshairs\a_pistol.bmp
crosshairfixed = false
recoilamount = 5
recoildecay = 10
;
; 3rd person
;
playeractor = weapon\p9mmar.act
playerfillcolor = 128 128 128
playerambientcolor = 128 128 128
playerrotation = 0 180 0
playerscale = 1
playerlaunchoffset = 0 0 10
playerbone = Line02
Is the playerbone entry the bone from the weapon or from the player???
Thanks Lukas