Here is the weapon definition from weapon.ini file
Code: Select all
;*********************************************************
; MP5
;*********************************************************
[mp5]
type = weapon
slot = 1
firerate = 0.1
catagory = projectile
projectile = 10mm_shell
attribute = enemy_health
ammunition = 10mm_shell
ammopershot = 1
shotpermagazine = 30
attacksound = Weapon\hmg.wav
emptysound = Weapon\dryfire_rifle.wav
reloadsound = Weapon\rifle_reload.wav
muzzleflash3rd = MuzzleFlash
;
; 1st Person
viewactor = Weapon\mp5\mp5.act
viewfillcolor = 255 255 255
viewambientcolor = 255 255 255
viewrotation = 18.6 -90 163.8
viewoffset = 5.7 -0.3 20.2
viewscale = 0.43
viewlaunchoffset = 0 0 25
viewlaunchbone = Bone01
viewanimationspeed = 1
viewarmanim = draw
viewidleanim = idle
viewattackanim = shoot1
viewaltattackanim = shoot2
viewhitanim = idle
viewalthitanim = idle
viewwalkanim = idle
muzzleflash = MuzzleFlash1
crosshair = crosshair.bmp
crosshairalpha = a_crosshair.bmp
crosshairfixed = false
allowlitcrosshair = true
crosshairlitcolor = 255 0 0
zoomamount = 1
zoomoverlay = zoomlow.bmp
zoomoverlayalpha = a_zoomlow.bmp
allowzoommove = false
recoilamount = 8
recoildecay = 4
bobamount = 10
viewreloadanim = draw
viewkeyreloadanim = draw
viewattackemptyanim = idle
environmentmapping = false
allmaterial = false
percentmapping = 0
percentmaterial = 0