Hey all. A while ago kravenwolf made a thread supporting Fenix mod's 'unique' feature of meele. I am happy to say, that with help from EAI, I have now got a full meele script working in FPSC. And this isnt just project blue, its any mod. The code can all be re-written using stock media commands. I will soon have a map uploaded to show everyone this new feature using a modded version of FPSC (not fenix mod). I'm not going to explain it to you, but below is all the code required to get meele working.
EAI, if you want me to take away the gunspec (im not sure if there is anything wrong with it) i will.
Weapon gunspec:
;G36C SUBCARBINE with IRONSIGHTS v1.0 weapon spec
;Mesh, Textures and Animation by Jake Cotton aka EAI (Errant AI) (c)2007-2008 All Rights Reserved
;[email protected]
;Enhanced for AirMod 0.6+ and Ply's Mod 1.07+. Includes iron sight anims, tactical reload anim, single hand anims for asymmetric dual wield, idle interupt anims.
;GUN Model File Requirements
;GUN Settings
MUZZLECOLORR = 252
MUZZLECOLORG = 150
MUZZLECOLORB = 54
muzzleflash = 94
muzzlesize = 70
brass = 4
smokedecal = gunsmoke
damage = 20
damagetype = 1
scorchtype = 2
reloadqty = 30
accuracy = 3
zoomaccuracy = 3
firerate = 10
range = 6000
;HUD muzzleflash position
horiz = 0
vert = 0
forward = 0
alignx = 6
aligny = -5.5
alignz = 40
zoomalignx = 0
zoomaligny = -6
zoomalignz = 20
;GUN Visuals
textured =
effect = effectbank\BumpCubeReflectAlpha\BumpCubeReflectAlpha.fx
transparency = 1
weapontype = 2
;GUN Sounds
sound1 = fire.wav
sound2 = reload.wav
sound3 = dryfire.wav
sound4 = putaway.wav
sound5 = altreload.wav
sound6 = tacreload.wav
fireloop = 2000
;HUD ANIMATION
keyframe ratio = 1
select = 1,13
idle = 26,49
move = 51,73
start fire = 76,77
automatic fire = 78,84
end fire = 85,90
reload = 91,169
putaway = 172,180
;HUD sound frames list
soundframes = 11
sframe0 = 87,1
sframe1 = 92,2
sframe2 = 1,4
sframe3 = 292,5
sframe4 = 204,4
sframe5 = 393,4
sframe6 = 201,4
sframe8 = 207,4
sframe9 = 292,6
sframe10 = 492,2
;HUD ANIMATION additional
zoomto = 200,205
zoomfrom = 206,211
zoom idle = 223,249
zoom move = 251,273
zoom start fire = 277,277
zoom automatic fire = 278,284
zoom end fire = 285,290
;zoomselect = 215,222
;zoomputaway = 369,375
dual_to = 380,385
dual_from = 386,391
dual_select = 401,413
dual_idle = 426,449
dual_move = 451,473
dual_start fire = 476,477
dual_automatic fire = 478,484
dual_end fire = 485,490
dual_reload = 491,569
dual_putaway = 572,580
tac reload = 292,366
melee start = 585,593
melee end = 594,613
interupt1 = 678,730
interupt2 = 731,800
;Ply's Mod Settings
candual = 1
bindammotovar = gts
;AirMod Settings
soundstrength = 100
;nofullreload = 1
chamberedround = 1
runy = -1.5
runaccuracy = 80
forcezoomout = 1
recoily = 25
recoilyreturn = 80
recoilx = 10
recoilxreturn = 80
zoomrecoily = 5
zoomrecoilyreturn = 85
zoomrecoilx = 4
zoomrecoilxreturn = 95
gunlagspeed = 7
gunlagxmax = 3
gunlagymax = 3
zoomgunlagspeed = 5
zoomgunlagxmax = 2
zoomgunlagymax = 2
zoomwalkspeed = 0.5
zoomturnspeed = 0.2
simplezoom = 2
simplezoommod = 0
simplezoomacc = 1
simplezoomx = 0
simplezoomy = 0
simplezoomspeed = 7
simplezoomanim = 1
simplezoomflash = 1
usescript = G36C.fpi
customanims = 1
canim1 = 585,613
Weapon extra script:
; Arenas Weapons Modifications
desc = Weapon AI
; Triggers
; ------Basic Setup
:state=0:dimvar=meele,setvar=meele 0
:state=0:state=1
; ------Firing Control
:state=1,isrightweap,haveweapleft=0,mouseclick=1,reloading=0:fireweapon
:state=1,isrightweap,haveweapleft=1,mouseclick=2,reloading=0:fireweapon
:state=1,isrightweap,haveweapleft=1,mouseclick=3,reloading=0:fireweapon
:state=1,isleftweap,mouseclick=1,reloading=0:fireweapon
; ------Reload Control
:state=2,reloading=0:enterzoom,state=1
:state=1,keypressed=19 1,zoomed=0:reloadplrweap
:state=1,keypressed=20 1,zoomed=0:reloadplrweap
:state=1,keypressed=19 1,zoomed=1:leavezoom,reloadplrweap,state=2
:state=1,keypressed=20 1,zoomed=1:leavezoom,reloadplrweap,state=2
:state=1,reloading=1,zoomed=1:leavezoom,state=2
; ------Zoom Control
:state=1,mouseclick=2,zoomed=0:enterzoom
:state=1,mouseclick=2,zoomed=1:leavezoom
; ------Melee
:state=1,keypressed=33 1:state=3
:state=3,keypressed=33 0:state=4,etimerstart,setvar=meele 1
:state=4:custanimgun=1,state=5,plrsound=audiobank\misc\melee.wav
:state=5,etimergreater=800:state=1,setvar=meele 0
;End Script
Meele Object Main Script:
;Artificial Intelligence Script
;Header
desc = Instant Off
;Triggers
:state=0,etimergreater=500,varequal=meele 1,plrdistwithin=40:etimerstart,subhealth=60
;End of Script
Please note that the varaibles can be re-written in stock, im just not very good with stock variables.