state cheataplayerstate

ends

onevent EVENT_ACTIVATECHEAT
	switch RETURN
		case 1 //give all dnstuff
			setvar TNT_AMMOAMOUNT 50
			setvar REMOTETNT_AMMOAMOUNT 50
			setvar PROXIMITYMINE_AMMOAMOUNT 50
			
			setactorvar[THISACTOR].bodyshield 200
			setactorvar[THISACTOR].fireshield 200
			setactorvar[THISACTOR].spiritshield 200
			
			setvar VAR_SKULLKEY 1
			setvar VAR_EYEKEY 1
			setvar VAR_FIREKEY 1
			setvar VAR_DAGGERKEY 1
			setvar VAR_SPIDERKEY 1
			setvar VAR_MOONKEY 1
			
			setvar DOCTORSBAGAM 100
			setvar BOOTSOFJUMPINGAM 1200
			setvar BEASTVISIONAM 1200
			setvar DIVINGSUITAM 1200
			setvar CRYSTALLBALLAM 1200
			
		break
		case 8 //items dnitems
			setactorvar[THISACTOR].bodyshield 200
			setactorvar[THISACTOR].fireshield 200
			setactorvar[THISACTOR].spiritshield 200
			
			setvar VAR_SKULLKEY 1
			setvar VAR_EYEKEY 1
			setvar VAR_FIREKEY 1
			setvar VAR_DAGGERKEY 1
			setvar VAR_SPIDERKEY 1
			setvar VAR_MOONKEY 1
			
			setvar DOCTORSBAGAM 100
			setvar BOOTSOFJUMPINGAM 1200
			setvar BEASTVISIONAM 1200
			setvar DIVINGSUITAM 1200
			setvar CRYSTALLBALLAM 1200
		break
		case 21 //weapons dnweapons
		setvar TNT_AMMOAMOUNT 50
		setvar REMOTETNT_AMMOAMOUNT 50
		setvar PROXIMITYMINE_AMMOAMOUNT 50
		break
		case 22 //inventory dninventory
		setvar DOCTORSBAGAM 100
		setvar BOOTSOFJUMPINGAM 1200
		setvar BEASTVISIONAM 1200
		setvar DIVINGSUITAM 1200
		setvar CRYSTALLBALLAM 1200
		break
		case 23 //keys dnkeys
		setvar VAR_SKULLKEY 1
		setvar VAR_EYEKEY 1
		setvar VAR_FIREKEY 1
		setvar VAR_DAGGERKEY 1
		setvar VAR_SPIDERKEY 1
		setvar VAR_MOONKEY 1
		break
	endswitch
endevent

onevent EVENT_CHEATGETFIRSTAID setvar RETURN -1 endevent
onevent EVENT_CHEATGETBOOT setvar RETURN -1 endevent
onevent EVENT_CHEATGETHEAT setvar RETURN -1 endevent
onevent EVENT_CHEATGETSCUBA setvar RETURN -1 endevent
onevent EVENT_CHEATGETSTEROIDS setvar RETURN -1 endevent
onevent EVENT_CHEATGETHOLODUKE setvar RETURN -1 endevent
onevent EVENT_HOLODUKEON setvar RETURN -1 endevent
//onevent EVENT_USEJETPACK setvar RETURN -1 endevent
onevent EVENT_CHEATGETJETPACK setvar RETURN -1 endevent

onevent EVENT_RESETINVENTORY
	setvar DOCTORSBAGAM 0
	setvar DIVINGSUITAM 0
	setvar CRYSTALLBALLAM 0
	setvar BEASTVISIONAM 0
	setvar BOOTSOFJUMPINGAM 0
endevent

onevent EVENT_RESETPLAYER
	setvar VAR_SKULLKEY 0
	setvar VAR_EYEKEY 0
	setvar VAR_FIREKEY 0
	setvar VAR_DAGGERKEY 0
	setvar VAR_SPIDERKEY 0
	setvar VAR_MOONKEY 0
	
	setvar cheat_ammo_on 0
	setvar cheat_armor_on 0
	setvar cheat_weapon_on 0
	ifvarg AKIMBOTIME 0 
		setvar deactiveakimbo 1
	
	setplayer[THISACTOR].shield_amount 0
	setplayer[THISACTOR].ammo_amount 11 0
	
	setvarvar current_weapon player[THISACTOR].curr_weapon
	
	setvar invisible 0 
	setvar orientationweapon 0 
	setvar INVISTIME 0
	
	setplayer[THISACTOR].kickback_pic 0
endevent