hey here is my big "thank you" for all!
I create a lot of script when I help or if I had a idea. Use them if you find it useful
before you say "it is not working" please be sure that you have the actual 1.2 Beta
I not support earlier versions
credit would be cool, but is not required
And now the most important in this thread:
Scripts:
Cam higher/smaller
put this in a triggerzone and press q and e to higher and taller(good for exploring your level)
;Artificial Intelligence Script
;Created by Corno_1
;Header
desc = flycam
;Triggers
;Q-key move the player up
;E-key move the player down
:state=0:plrspeedmod=300,jumpkey=0,peekkey=0,crouchkey=0,plrcamoffseton=1,state=1
:state=1,keypressed=16 1:plrcamoffsety=10,etimerstart,state=2
:state=1,keypressed=18 1:plrcamoffsety=0,etimerstart,state=2
:state=2,etimergreater=40,keypressed=16 1:plrcamoffsety=10,etimerstart,state=3
:state=2,etimergreater=40,keypressed=18 1:plrcamoffsety=0,etimerstart
:state=3,etimergreater=40,keypressed=16 1:plrcamoffsety=20,etimerstart,state=4
:state=3,etimergreater=40,keypressed=18 1:plrcamoffsety=10,etimerstart,state=2
:state=4,etimergreater=40,keypressed=16 1:plrcamoffsety=30,etimerstart,state=5
:state=4,etimergreater=40,keypressed=18 1:plrcamoffsety=20,etimerstart,state=3
:state=5,etimergreater=40,keypressed=16 1:plrcamoffsety=40,etimerstart,state=6
:state=5,etimergreater=40,keypressed=18 1:plrcamoffsety=30,etimerstart,state=4
:state=6,etimergreater=40,keypressed=16 1:plrcamoffsety=50,etimerstart,state=7
:state=6,etimergreater=40,keypressed=18 1:plrcamoffsety=40,etimerstart,state=5
:state=7,etimergreater=40,keypressed=16 1:plrcamoffsety=60,etimerstart,state=8
:state=7,etimergreater=40,keypressed=18 1:plrcamoffsety=50,etimerstart,state=6
:state=8,etimergreater=40,keypressed=16 1:plrcamoffsety=70,etimerstart,state=9
:state=8,etimergreater=40,keypressed=18 1:plrcamoffsety=60,etimerstart,state=7
:state=9,etimergreater=40,keypressed=16 1:plrcamoffsety=80,etimerstart,state=10
:state=9,etimergreater=40,keypressed=18 1:plrcamoffsety=70,etimerstart,state=8
:state=10,etimergreater=40,keypressed=16 1:plrcamoffsety=90,etimerstart,state=11
:state=10,etimergreater=40,keypressed=18 1:plrcamoffsety=80,etimerstart,state=9
:state=11,etimergreater=40,keypressed=16 1:plrcamoffsety=100,etimerstart,state=12
:state=11,etimergreater=40,keypressed=18 1:plrcamoffsety=90,etimerstart,state=10
:state=12,etimergreater=40,keypressed=16 1:plrcamoffsety=110,etimerstart,state=13
:state=12,etimergreater=40,keypressed=18 1:plrcamoffsety=100,etimerstart,state=11
:state=13,etimergreater=40,keypressed=16 1:plrcamoffsety=120,etimerstart,state=14
:state=13,etimergreater=40,keypressed=18 1:plrcamoffsety=110,etimerstart,state=12
:state=14,etimergreater=40,keypressed=16 1:plrcamoffsety=130,etimerstart,state=15
:state=14,etimergreater=40,keypressed=18 1:plrcamoffsety=120,etimerstart,state=13
:state=15,etimergreater=40,keypressed=16 1:plrcamoffsety=140,etimerstart,state=16
:state=15,etimergreater=40,keypressed=18 1:plrcamoffsety=130,etimerstart,state=14
:state=16,etimergreater=40,keypressed=16 1:plrcamoffsety=150,etimerstart,state=17
:state=16,etimergreater=40,keypressed=18 1:plrcamoffsety=140,etimerstart,state=15
:state=17,etimergreater=40,keypressed=16 1:plrcamoffsety=160,etimerstart,state=18
:state=17,etimergreater=40,keypressed=18 1:plrcamoffsety=150,etimerstart,state=16
:state=18,etimergreater=40,keypressed=16 1:plrcamoffsety=170,etimerstart,state=19
:state=18,etimergreater=40,keypressed=18 1:plrcamoffsety=160,etimerstart,state=17
:state=19,etimergreater=40,keypressed=16 1:plrcamoffsety=180,etimerstart,state=20
:state=19,etimergreater=40,keypressed=18 1:plrcamoffsety=170,etimerstart,state=18
:state=20,etimergreater=40,keypressed=16 1:plrcamoffsety=190,etimerstart,state=21
:state=20,etimergreater=40,keypressed=18 1:plrcamoffsety=180,etimerstart,state=19
:state=21,etimergreater=40,keypressed=16 1:plrcamoffsety=200,etimerstart
:state=21,etimergreater=40,keypressed=18 1:plrcamoffsety=190,etimerstart,state=20
;End of Script
Take a photo
put this in a triggerzone and press g to aktivate
(here is a good sound for the script(i use this)
http://www.freesound.org/people/FreqMan/sounds/42899/ )
;Artificial Intelligence Script
;by corno_1
;Header
desc = Photo when F pressed
;Triggers
;additional
;:varequal=camera 10:etimerstart,state=10
;:state=10,etimergreater=5000:setvar=camera 0,state=1
;:state=0:dimvar=camera,setvar=camera 0
:state=0:FlashLightRange=500
:state=0:FlashLightRed=255
:state=0:FlashLightGreen=255
:state=0:FlashLightBlue=255,state=1
:state=1,KeyPressed=34 1:FlashLight=1,etimerstart,sound=audiobank\photo.wav,State=2
:state=2,etimergreater=500:FlashLight=0,State=3
:state=3,etimergreater=550:FlashLight=1,state=4
;if aditional activate, set "addvar=camera 1" in the next line
:state=4,etimergreater=800:FlashLight=0,state=5
:state=5,keypressed=34 0:state=1
;End of Script
landmine
set this as a mainscript from any entity(small)
;Artificial Intelligence Script
;by corno_1
;Header
desc = claymore
;Triggers
:state=0:state=1
:state=1,plrdistwithin=100,plrcanbeseen:state=2
:state=2:explode,destroy,state=3
;End of Script
cod health
triggerzone and plrhealth 100
;Artificial Intelligence Script
;Created by Corno_1
;Header
desc = cod health
;Triggers
:state=0:state=1
:state=1,plrhealthless=100:etimerstart,state=2
:state=2,etimergreater=5000:plraddhealth=1,state=3
:state=3,plrhealthgreater=99:state=1
:state=3,plrhealthless=100:state=2
;End of Script
flashlight_defective contact (need download(hud))
put in triggerzone
;Artificial Intelligence Script
;by corno
;Header
desc = FlashLight when F pressed
;Triggers
:state=0:flashlightrange=500
:state=0:flashlightblue=255,flashlightgreen=255,flashlightred=255
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\cornohuds\flashlight.dds,hudname=flash,hudhide=1,hudmake=display,State=1
:State=1,KeyPressed=33 1:flashlight=1,hudshow=flash,etimerstart,State=2,Sound=AudioBank\Switches\Click.wav
:State=2,KeyPressed=33 0:flashlight=0,hudunshow=flash,State=1
:state=2,etimergreater=6000:flashlight=0,hudunshow=flash,etimerstart,state=3
:state=3,etimergreater=4000:state=1
;End of Script
nightvision
put this in a triggerzone and press N(you need the huds from the download)
;Artificial Intelligence Script
;by corno_1
desc = Night Vision
;Header
;Triggers
:state=0:dimvar=night,setvar=night 0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\cornohuds\nightvision.dds,hudhide=1,hudname=nv,hudmake=display,state=1
:varequal=night 1:hudshow=nv,ambience=20,ambiencegreen=255
:varequal=night 0:hudunshow=nv,ambience=0,ambiencegreen=0
:state=1,keypressed=49 1:setvar=night 1,state=2
:state=2,keypressed=49 0:state=3
:state=3,keypressed=49 1:setvar=night 0,state=4
:state=4,keypressed=49 0:state=1
;End of Script
thermalvision
put this in a triggerzone and press T (you need the huds from the download)
;Artificial Intelligence Script
;by Corno_1
desc = Thermal Vision
;Header
;Triggers
:state=0:dimvar=thermal,setvar=thermal 0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\cornohuds\thermal.dds,hudhide=1,hudname=th,hudmake=display,state=1
:varequal=thermal 1:hudshow=th
:varequal=thermal 0:hudunshow=th
:state=1,keypressed=20 1:setvar=thermal 1,state=2
:state=2,keypressed=20 0:state=3
:state=3,keypressed=20 1:setvar=thermal 0,state=4
:state=4,keypressed=20 0:state=1
;End of Script
and this two lines come in the main and shoot scripts of the npc + as alttexture use a white image
:varequal=thermal 1:alttexture=1
:varequal=thermal 0:alttexture=0
quick sand
Put this in a triggerzone and go into it
;Artificial Intelligence Script
;by corno
;Header
desc = quicksand
:plrwithinzone=0:walkkeys=1,jumpkey=1,crouchkey=1,runkey=1
;Triggers
:state=0,plrwithinzone=1:plrcamoffseton=1,walkkeys=0,jumpkey=0,crouchkey=0,runkey=0,etimerstart,plrfreeze=1000,state=1
:state=1,etimergreater=300:plrcamoffsety=0
:state=1,etimergreater=600:plrcamoffsety=-1
:state=1,etimergreater=900:plrcamoffsety=-2
:state=1,etimergreater=1200:plrcamoffsety=-3
:state=1,etimergreater=1500:plrcamoffsety=-4
:state=1,etimergreater=1800:plrcamoffsety=-5
:state=1,etimergreater=2100:plrcamoffsety=-6
:state=1,etimergreater=2400:plrcamoffsety=-7
:state=1,etimergreater=2700:plrcamoffsety=-8
:state=1,etimergreater=3000:plrcamoffsety=-9
:state=1,etimergreater=3300:plrcamoffsety=-10
:state=1,etimergreater=3600:plrcamoffsety=-11
:state=1,etimergreater=3900:plrcamoffsety=-12
:state=1,etimergreater=4200:plrcamoffsety=-13
:state=1,etimergreater=4500:plrcamoffsety=-14
:state=1,etimergreater=4800:plrcamoffsety=-15
:state=1,etimergreater=5100:plrcamoffsety=-16
:state=1,etimergreater=5400:plrcamoffsety=-17
:state=1,etimergreater=5700:plrcamoffsety=-18
:state=1,etimergreater=6000:plrcamoffsety=-19
:state=1,etimergreater=6300:plrcamoffsety=-20
:state=1,etimergreater=6600:plrcamoffsety=-21
:state=1,etimergreater=6900:plrcamoffsety=-22
:state=1,etimergreater=7200:plrcamoffsety=-23
:state=1,etimergreater=7500:plrcamoffsety=-24
:state=1,etimergreater=7800:plrcamoffsety=-25
:state=1,etimergreater=8100:plrcamoffsety=-26
:state=1,etimergreater=8400:plrcamoffsety=-27
:state=1,etimergreater=8700:plrcamoffsety=-28,plraddhealth=-9999,state=2
:state=2:plrcamoffseton=0
;End of Script
dying_stagger
put this in a triggerzone and the go into it to activate the effect
;Artificial Intelligence Script
;Created by Corno
;Header
desc = dying stagger
;Triggers
:state=0,plrwithinzone=1:plrdeath=3,plrwobble=10,camshake=10,etimerstart,state=1
:state=1,etimergreater=4000:plraddhealth=-9999,state=2
:state=2:plrwobble=0,camshake=0
;End of Script
poisend_triggerzone
put this in a triggerzone and go into it to be poisend
;Artificial Intelligence Script
;Created by Corno
;Header
desc = poisend
;Triggers
:varequal=poisend 1,etimergreater=1000:etimerstart,plraddhealth=-10
:state=0:dimvar=poisend,setvar=poisend 0
:varequal=poisend 1:ambiencegreen=140,ambiencered=0,ambienceblue=0
:varequal=poisend 0:ambiencegreen=255,ambiencered=255,ambienceblue=255
:state=0,plrwithinzone=1:etimerstart,setvar=poisend 1,state=1
;End of Script
poisend_antitoxin
give this a dynamic entity in the mainscript and follow the instructions on screen if you near and see it
;Artificial Intelligence Script
;Created by Corno
;Header
desc = antitoxin
;Triggers
:state=0,plrdistwithin=60,plrfacing=30:fpgcrawtextsize=32,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=60,fpgcrawtext=Press F to take antitoxin,state=1
:state=1,plrdistwithin=60,plrfacing=30:fpgcrawtextsize=32,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=60,fpgcrawtext=Press F to take antitoxin
:state=1,keypressed=33 1:playertake,coloff,setvar=poisend 0
;End of Script
Crosshair-on-off-toggle
put this in a triggerzone
;Artificial Intelligence Script
;by Corno
;Header
;so you can shoot with crosshair and aim without crosshair
desc = crossair on/off toggle
;Triggers
:plrusingreload=1:etimerstart,state=10
:state=10,etimergreater=700:state=0
:state=0:crosshair=1,state=1
:state=1,mouseclick=0:state=2
:state=2,mouseclick=2:crosshair=0,state=3
:state=3,mouseclick=0:state=4
:state=4,mouseclick=2:crosshair=1,state=1
;End of Script
Broken Leg Script
put this in a triggerzone as main and see how your leg is broken
;Artificial Intelligence Script
;Created by Corno
;Header
desc = broken leg
;Triggers
:state=0:runkey=0,plrcamoffseton=1,state=1
:state=1,keypressed=17 1:state=2
:state=1,keypressed=30 1:state=2
:state=1,keypressed=31 1:state=2
:state=1,keypressed=32 1:state=2
:state=2:etimerstart,state=3
:state=3,etimergreater=40:plrcamoffsety=0,etimerstart,state=4
:state=4,etimergreater=40:plrcamoffsety=-2,etimerstart,state=5
:state=5,etimergreater=40:plrcamoffsety=-4,etimerstart,state=6
:state=6,etimergreater=40:plrcamoffsety=-6,etimerstart,state=7
:state=7,etimergreater=40:plrcamoffsety=-8,etimerstart,state=8
:state=8,etimergreater=40:plrcamoffsety=-6,etimerstart,state=9
:state=9,etimergreater=40:plrcamoffsety=-4,etimerstart,state=10
:state=10,etimergreater=40:plrcamoffsety=-2,etimerstart,state=11
:state=11,etimergreater=40:plrcamoffsety=0,etimerstart,state=12
:state=12,etimergreater=200:state=1
;End of Script
Sprint script, disable sprinting after 10 sec
put this in a triggerzone
;Artificial Intelligence Script
;Created by Corno
;Header
desc = runkey disable after 10 sec
;Triggers
:state=0,keypressed=42 1:etimerstart,state=1
:state=1,etimergreater=10000:sound=$0,etimerstart,state=2
:state=1,keypressed=42 0:state=0
:state=2,keypressed=42 1:plrspeedmod=50,state=3
:state=2,etimergreater=5000:plrspeedmod=100,state=0
:state=3,keypressed=42 0:plrspeedmod=100,state=2
:state=3,etimergreater=5000:plrspeedmod=100,state=0
;End of Script
Corno_1