
First off, what is this? Anyone help?
Next here is the script, Can you spot what is wrong with it? (This is the first thing I have EVER scripted. Based on Mpowell's fan and I looked at the funfair map by tltrude [ may be mistaken])
Code: Select all
main:
setcvar "g_obj_alliedtext1" "Spin on the carts!!"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Made by Snake!! :D"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" ""
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/strawb.scr
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
thread fan1_prep
end
fan1_prep:
$ball1 bind $fan1
$pole1 bind $blade1
$pole2 bind $blade2
$pole3 bind $blade3
$pole4 bind $blade4
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$a1 bind $fan1
$a2 bind $fan1
$a3 bind $fan1
$a4 bind $fan1
$a5 bind $fan1
$a6 bind $fan1
$a7 bind $fan1
$a8 bind $fan1
$a9 bind $fan1
$a10 bind $fan1
$a11 bind $fan1
$a12 bind $fan1
$a13 bind $fan1
$cart1 bind $pole1
$cart2 bind $pole2
$cart3 bind $pole3
$cart4 bind $pole4
goto fan1_start
goto pole1_start
goto pole2_start
goto pole3_start
goto pole4_start
goto ball1_start
end
//-------------------------------------------->
fan1_start:
$switch waittill trigger //That error up there is here!
wait 2
$fan1 rotatey 1
wait .3
$fan1 rotatey 5
wait .3
$fan1 rotatey 10
wait .3
$fan1 rotatey 15
wait .3
$fan1 rotatey 20
wait .3
$fan1 rotatey 25
wait .3
$fan1 rotatey 30
wait .3
$fan1 rotatey 35
wait .3
$fan1 rotatey 40
wait .3
$fan1 rotatey 45
wait .3
$fan1 rotatey 50
wait .3
$fan1 rotatey 55
wait .3
$fan1 rotatey 60
wait .3
$fan1 rotatey 65
wait .3
$fan1 rotatey 70
wait .3
$fan1 rotatey 75
wait .3
$fan1 rotatey 80
wait .3
$fan1 rotatey 85
wait .3
$fan1 rotatey 95
wait .3
$fan1 rotatey 120
goto fan1_stop
end
//-------------------------------------------->
pole1_start:
$switch waittill trigger
wait 2
$pole1 rotatey -1
wait .3
$pole1 rotatey -5
wait .3
$pole1 rotatey -10
wait .3
$pole1 rotatey -15
wait .3
$pole1 rotatey -20
wait .3
$pole1 rotatey -25
wait .3
$pole1 rotatey -30
wait .3
$pole1 rotatey -35
wait .3
$pole1 rotatey -40
wait .3
$pole1 rotatey -45
wait .3
$pole1 rotatey -50
wait .3
$pole1 rotatey -55
wait .3
$pole1 rotatey -60
wait .3
$pole1 rotatey -65
wait .3
$pole1 rotatey -70
wait .3
$pole1 rotatey -75
wait .3
$pole1 rotatey -80
wait .3
$pole1 rotatey -85
wait .3
$pole1 rotatey -90
wait .3
$pole1 rotatey -95
wait .3
$pole1 rotatey -120
goto pole1_stop
end
//-------------------------------------------->
pole2_start:
$switch waittill trigger
wait 2
$pole2 rotatey -1
wait .3
$pole2 rotatey -5
wait .3
$pole2 rotatey -10
wait .3
$pole2 rotatey -15
wait .3
$pole2 rotatey -20
wait .3
$pole2 rotatey -25
wait .3
$pole2 rotatey -30
wait .3
$pole2 rotatey -35
wait .3
$pole2 rotatey -40
wait .3
$pole2 rotatey -45
wait .3
$pole2 rotatey -50
wait .3
$pole2 rotatey -55
wait .3
$pole2 rotatey -60
wait .3
$pole2 rotatey -65
wait .3
$pole2 rotatey -70
wait .3
$pole2 rotatey -75
wait .3
$pole2 rotatey -80
wait .3
$pole2 rotatey -85
wait .3
$pole2 rotatey -90
wait .3
$pole2 rotatey -95
wait .3
$pole2 rotatey -125
goto pole2_stop
end
//-------------------------------------------->
pole3_start:
$switch waittill trigger
wait 2
$pole3 rotatey -1
wait .3
$pole3 rotatey -5
wait .3
$pole3 rotatey -10
wait .3
$pole3 rotatey -15
wait .3
$pole3 rotatey -20
wait .3
$pole3 rotatey -25
wait .3
$pole3 rotatey -30
wait .3
$pole3 rotatey -35
wait .3
$pole3 rotatey -40
wait .3
$pole3 rotatey -45
wait .3
$pole3 rotatey -50
wait .3
$pole3 rotatey -55
wait .3
$pole3 rotatey -60
wait .3
$pole3 rotatey -65
wait .3
$pole3 rotatey -70
wait .3
$pole3 rotatey -75
wait .3
$pole3 rotatey -80
wait .3
$pole3 rotatey -85
wait .3
$pole3 rotatey -90
wait .3
$pole3 rotatey -95
wait .3
$pole3 rotatey -130
goto pole3_stop
end
//-------------------------------------------->
pole4_start:
$switch waittill trigger
wait 2
$pole4 rotatey -1
wait .3
$pole4 rotatey -5
wait .3
$pole4 rotatey -10
wait .3
$pole4 rotatey -15
wait .3
$pole4 rotatey -20
wait .3
$pole4 rotatey -25
wait .3
$pole4 rotatey -30
wait .3
$pole4 rotatey -35
wait .3
$pole4 rotatey -40
wait .3
$pole4 rotatey -45
wait .3
$pole4 rotatey -50
wait .3
$pole4 rotatey -55
wait .3
$pole4 rotatey -60
wait .3
$pole4 rotatey -65
wait .3
$pole4 rotatey -70
wait .3
$pole4 rotatey -75
wait .3
$pole4 rotatey -80
wait .3
$pole4 rotatey -85
wait .3
$pole4 rotatey -90
wait .3
$pole4 rotatey -95
wait .3
$pole4 rotatey -125
goto pole4_stop
end
//-------------------------------------------->
ball1_start:
$switch waittill trigger
wait 2
$ball1 rotatey 25
$ball1 rotatez 25
$ball1 rotatex 25
wait .3
$ball1 rotatey 75
$ball1 rotatez 75
$ball1 rotatex 75
wait .3
$ball1 rotatey 125
$ball1 rotatez 125
$ball1 rotatex 125
wait .3
$ball1 rotatey 175
$ball1 rotatez 175
$ball1 rotatex 175
wait .3
$ball1 rotatez 225
$ball1 rotatex 225
$ball1 rotatey 225
wait .3
$ball1 rotatez 275
$ball1 rotatex 275
$ball1 rotatey 275
wait .3
$ball1 rotatey 325
$ball1 rotatez 325
$ball1 rotatex 325
wait .3
$ball1 rotatey 375
$ball1 rotatez 375
$ball1 rotatex 375
wait .3
$ball1 rotatey 400
$ball1 rotatez 425
$ball1 rotatex 450
goto ball1_stop
end
//-------------------------------------------->
fan1_stop:
$switch waittill trigger
fan1 rotatey 0
goto fan1_start
end
//-------------------------------------------->
pole1_stop:
$switch waittill trigger
pole1 rotatey 0
goto pole1_start
end
//-------------------------------------------->
pole2_stop:
$switch waittill trigger
pole2 rotatey 0
goto pole2_start
end
//-------------------------------------------->
pole3_stop:
$switch waittill trigger
pole3 rotatey 0
goto pole3_start
end
//-------------------------------------------->
pole4_stop:
$switch waittill trigger
pole4 rotatey 0
goto pole4_start
end
//-------------------------------------------->
ball1_stop:
$switch waittill trigger
ball1 rotatey 0
ball1 rotatex 0
ball1 rotatez 0
goto ball1_start
end
