My crapppy script
Posted: Tue May 06, 2003 5:06 am
Here it is, my bomb for the bridge is called bomb and its set number is 1. The second bomb is at the house and actually works its called bomb2 and its set number is 2. I set them up just like the manual says, I even used the picture (my bridge even). Well maybe it would work but my exploder isnt solid so I fall through the bridge.
A second problem is the trucks wait for the first round but each round after they just do the bolt?
My script.
main:
// don't put any code above this line, it will get up after a server restart!
level waittill prespawn
exec global/exploder.scr
exec global/bomber.scr
exec global/weather.scr
$allied_truck thread truck_off
$allied_truck2 thread truck_off
exec global/DMprecache.scr
level waittill spawn
thread scientistidle
$good_soldier thread salute
//exec global/cardgame.scr
level.planes = 0
thread flyby
level.debug_light = 0
level.jvbot_respawning = 1 // uhm, better just leave at 1 for the beta
level.alliesbots = 1 // max number of bots
level.axisbots = 1
level.dmrespawning = 1 // respawn players, necessary!
level.dmroundlimit = 8
level.clockside = "axis" // axis win when timelimit is hit
level.defusing_team = "axis"
level.planting_team = "allies" // can be set per individual bomb as well by using the $plantteam key
level.targets_to_destroy = 2
level.bomb_damage = 200
level.bomb_explosion_radius = 256
$bomb thread global/jv_obj_dm.scr::bomb_thinker
$bomb2 thread global/jv_obj_dm.scr::bomb_thinker
level.jvbot_weapon_priority["springfield '03 sniper"] = 80
level.jvbot_weapon_priority["mauser kar 98d sniper"] = 80
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots
while !(level.roundstart)
wait 0.5
//while($bomb.exploded != 1)
// wait 0.5
//teamwin allies
end
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
flyby:
//***random flyby of plane
while(1)
{
wait 1.0
level.planes++
thread global/bomber.scr::bomb 4
thread global/bomber.scr::bomb 5
wait 10
thread global/bomber.scr::bomb 6
thread global/bomber.scr::bomb 7
wait (randomint(20) + 20)
}
end
truck_off:
{
self.collisionent = self.target
self.collisionent hide
}
$allied_truck2 anim idlenolights
wait 1
wait 20
$allied_truck drive $allied_truck_path 260 100 40 128
wait 1
wait 5
$allied_truck2 drive $allied_truck_path2 260 100 40 128
end
A second problem is the trucks wait for the first round but each round after they just do the bolt?
My script.
main:
// don't put any code above this line, it will get up after a server restart!
level waittill prespawn
exec global/exploder.scr
exec global/bomber.scr
exec global/weather.scr
$allied_truck thread truck_off
$allied_truck2 thread truck_off
exec global/DMprecache.scr
level waittill spawn
thread scientistidle
$good_soldier thread salute
//exec global/cardgame.scr
level.planes = 0
thread flyby
level.debug_light = 0
level.jvbot_respawning = 1 // uhm, better just leave at 1 for the beta
level.alliesbots = 1 // max number of bots
level.axisbots = 1
level.dmrespawning = 1 // respawn players, necessary!
level.dmroundlimit = 8
level.clockside = "axis" // axis win when timelimit is hit
level.defusing_team = "axis"
level.planting_team = "allies" // can be set per individual bomb as well by using the $plantteam key
level.targets_to_destroy = 2
level.bomb_damage = 200
level.bomb_explosion_radius = 256
$bomb thread global/jv_obj_dm.scr::bomb_thinker
$bomb2 thread global/jv_obj_dm.scr::bomb_thinker
level.jvbot_weapon_priority["springfield '03 sniper"] = 80
level.jvbot_weapon_priority["mauser kar 98d sniper"] = 80
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots
while !(level.roundstart)
wait 0.5
//while($bomb.exploded != 1)
// wait 0.5
//teamwin allies
end
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
flyby:
//***random flyby of plane
while(1)
{
wait 1.0
level.planes++
thread global/bomber.scr::bomb 4
thread global/bomber.scr::bomb 5
wait 10
thread global/bomber.scr::bomb 6
thread global/bomber.scr::bomb 7
wait (randomint(20) + 20)
}
end
truck_off:
{
self.collisionent = self.target
self.collisionent hide
}
$allied_truck2 anim idlenolights
wait 1
wait 20
$allied_truck drive $allied_truck_path 260 100 40 128
wait 1
wait 5
$allied_truck2 drive $allied_truck_path2 260 100 40 128
end

