Heres my current progress:
This is the hard part:
;Artificial Intelligence Script
;Header
desc = Zombie Mod (Use Entity 1000)
;Triggers
:state=0,varequal=twoweapons 2:state=2
:state=0,varequal=twoweapons 3:state=3
:state=0,varequal=twoweapons 4:state=4
:state=0,varequal=twoweapons 5:state=5
:state=0,varequal=twoweapons 6:state=6
:state=0,varequal=twoweapons 7:state=7
:state=0,varequal=twoweapons 8:state=8
:state=0,varequal=twoweapons 9:state=9
:state=0,varequal=twoweapons 10:state=10
:state=2,haveweap="EAI\G36C":addvar=$RA 20
:state=2,haveweap="EAI\P90SE":replaceweap="EAI\P90SE" "EAI\G36C"
:state=2,haveweap="Model Pack 5\M249":replaceweap="model pack\ 5M249" "EAI\G36C
:state=2,haveweap="Model Pack 10\JSCSbreecher":replaceweap="Model Pack 10\JSCSbreecher" "EAI\G36C"
:state=2,haveweap="Model Pack 10\LRSR":replaceweap="Model Pack 10\LRSR" "EAI\G36C"
:state=2:setvar=twoweapons 1,state=0
:state=3,haveweap="EAI\G36C":replaceweap="EAIG36C" "EAI\P90SE"
:state=3,haveweap="EAI\P90SE":addvar=$RA 20
:state=3,haveweap="Model Pack 5\M249":replaceweap="model pack 5\M249" "EAI\P90SE"
:state=3,haveweap="Model Pack 10\JSCSbreecher":replaceweap="Model Pack 10\JSCSbreecher" "EAI\P90SE"
:state=3,haveweap="Model Pack 10\LRSR":replaceweap="Model Pack 10\LRSR" "EAI\P90SE"
:state=3:setvar=twoweapons 1,state=0
:state=4,haveweap="EAI\G36C":replaceweap="EAI\G36C" "model pack 5\M249"
:state=4,haveweap="EAI\P90SE":replaceweap="EAI\P90" "model pack 5\M249
:state=4,haveweap="Model Pack 5\M249":addvar=$RA 20
:state=4,haveweap="Model Pack 10\JSCSbreecher":replaceweap="Model Pack 10JSCSbreecher" "model pack 5\M249"
:state=4,haveweap="Model Pack 10\LRSR":replaceweap="Model Pack 10\LRSR" "model pack 5M249"
:state=4:setvar=twoweapons 1,state=0
:state=5,haveweap="EAI\G36C":replaceweap="EAI\G36C" "Model Pack 10\JSCSbreecher"
:state=5,haveweap="EAIP90SE":replaceweap="EAI\P90SE" "Model Pack 10\JSCSbreecher"
:state=5,haveweap="Model Pack 5\M249":replaceweap="model pack 5\M249" "Model Pack 10\JSCSbreecher"
:state=5,haveweap="Model Pack 10\JSCSbreecher":addvar=$RA 20
:state=5,haveweap="Model Pack 10\LRSR":replaceweap="Model Pack 10\LRSR" "Model Pack 10\JSCSbreecher"
:state=5:setvar=twoweapons 1,state=0
:state=6,haveweap="EAI\G36C":replaceweap="EAI\G36C" "Model Pack 10\LRSR"
:state=6,haveweap="EAI\P90SE":replaceweap="EAI\P90SE" "Model Pack 10LRSR"
:state=6,haveweap="Model Pack 5\M249":replaceweap="model pack 5\M249" "Model Pack 10\LRSR"
:state=6,haveweap="Model Pack 10\JSCSbreecher":replaceweap="Model Pack 10\JSCSbreecher" "Model Pack 10\LRSR"
:state=6,haveweap="Model Pack 10\LRSR":addvar=$RA 20
:state=6:setvar=twoweapons 1,state=0
;End of Script
This is the easy part, its atatched to the weapon, in this case the G36C;
;Artificial Intelligence Script
;Header
desc = Zombie Mod (G36C)
;Triggers
:state=0,hudreset,hudx=50,hudy=90,hudsize=30,hudtext=You require 100 XP Points To Buy This Weapon,hudname=takeweapona,hudhide=1,hudmake=display
:state=0:state=1
:state=1,plrdistwithin=60:hudshow=takeweapona
:state=1,plrdistfurther=60:hudunshow=takeweapona
:state=1,vargreater=scoresystem 99:state=2
:state=2,varequal=twoweapons 0:state=6
:state=2,scancodekeypressed=33:state=3
:state=2:state=1
:state=3,plrdistwithin=60:state=4,playertake,coloff,rundecal=-1,plrsound=audiobankitemspickupweapon.wav
;state=4:setvar=twoweapons 1,state=5
:state=5,plrdistfurther=65:state=100
:state=6,scancodekeypressed=33:state=7
:state=6:state=1
:state=7:setvar=twoweapons 2,runfpi=user\Zombie Mod\zombiemodweaponswitchcondition.fpi
:state=7:state=0
;End of Script
This is the problem:
The huds dont appear. The weapon gets picked up but not switched and in some cases, when i set the twoweapons variable to 1 nothing happens at all.
For some reason all of the backslashes arent being copied into my first script. I assure you that all of the directorys are correct. I assume that the problem is a simple one.