Need help getting 2 bombs to blow
Moderator: Moderators
Need help getting 2 bombs to blow
The problem i have is the axis can not defuse the bombs when the allies have planted them, also when both bombs have exploded the map does not restart. I have looked through many script files & i'm not certain what i have done wrong. The problem is in-front of my eyes.
Any help or advise would be welcome thank you.
below is the script
// Initialize the exploder subsystem
thread global/exploder.scr::main
level waittill spawn
// Axis like the bombs unplanted
level.defusing_team = "axis
// Allies will try to plant the bombs
level.planting_team = "allies"
// Number of targets in this map
level.targets_to_destroy = 2
// Default damage of the bomb
level.bomb_damage = 200
// Default radius of bomb blast
level.bomb_explosion_radius = 2048
// Set the parameters for round based match
level.dmrespawning = 0 // 1 or 0 (0=no respawn)
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = axis // axis, allies, kills, or draw
// Comment out this line to be able to set the bomb
// when alone on the map ( just for testing )
level waittill roundstart
$controlpanel_bomb thread global/obj_dm.scr::bomb_thinker
// "controlpanel_bomb" is the targetname of a bomb in Radiant
$coms_bomb thread global/obj_dm.scr::bomb_thinker
// "coms_bomb" is the targetname of a bomb in Radiant
thread allies_win_bom
// Start the win check thread for allies
// Start the win check thread for axis
$controlpanel_bomb thread axis_win_timer
$coms_bomb thread axis_win_timer
thread v2lift_mover
thread rocket_prep
thread ammohatch_mover
thread guardhatch_mover
thread phonehatch_mover
end // end of main
// Allied victory test
allies_win_bomb:
// While undestroyed objectives left
while(level.targets_destroyed < level.targets_to_destroy)
// chill out
waitframe
// No objectives left allies win
teamwin allies
end
// Axis victory test
axis_win_timer:
// At the end Axis win
level waittill axiswin
end
Any help or advise would be welcome thank you.
below is the script
// Initialize the exploder subsystem
thread global/exploder.scr::main
level waittill spawn
// Axis like the bombs unplanted
level.defusing_team = "axis
// Allies will try to plant the bombs
level.planting_team = "allies"
// Number of targets in this map
level.targets_to_destroy = 2
// Default damage of the bomb
level.bomb_damage = 200
// Default radius of bomb blast
level.bomb_explosion_radius = 2048
// Set the parameters for round based match
level.dmrespawning = 0 // 1 or 0 (0=no respawn)
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = axis // axis, allies, kills, or draw
// Comment out this line to be able to set the bomb
// when alone on the map ( just for testing )
level waittill roundstart
$controlpanel_bomb thread global/obj_dm.scr::bomb_thinker
// "controlpanel_bomb" is the targetname of a bomb in Radiant
$coms_bomb thread global/obj_dm.scr::bomb_thinker
// "coms_bomb" is the targetname of a bomb in Radiant
thread allies_win_bom
// Start the win check thread for allies
// Start the win check thread for axis
$controlpanel_bomb thread axis_win_timer
$coms_bomb thread axis_win_timer
thread v2lift_mover
thread rocket_prep
thread ammohatch_mover
thread guardhatch_mover
thread phonehatch_mover
end // end of main
// Allied victory test
allies_win_bomb:
// While undestroyed objectives left
while(level.targets_destroyed < level.targets_to_destroy)
// chill out
waitframe
// No objectives left allies win
teamwin allies
end
// Axis victory test
axis_win_timer:
// At the end Axis win
level waittill axiswin
end
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Re: Need help getting 2 bombs to blow
First, correct this typo:
The rest appears to be correct. See if fixing this will help.
You need another " after axis.twdgp wrote: // Axis like the bombs unplanted
level.defusing_team = "axis
The rest appears to be correct. See if fixing this will help.
Post subject: Re: Need help getting 2 bombs to blow
Thank you I have corrected the line in the script file, I have not tested the map out yet but will be doing so later on. with the new script file in place.
Its crazy just a small thing like ( " ) this, I looked & looked but didnt see it.
Thanks again
Its crazy just a small thing like ( " ) this, I looked & looked but didnt see it.
Thanks again
Hi
i'm new to this mapping & scripting how do I check it out in the console
do I just open up console & type in restart & read the errors that come up.
I have just done the above in console & did not get any error's but had loads of cashe model things, with leaving the ( " ) from the line ( "axis ) would that have shown up as a error for me.
i'm new to this mapping & scripting how do I check it out in the console
do I just open up console & type in restart & read the errors that come up.
I have just done the above in console & did not get any error's but had loads of cashe model things, with leaving the ( " ) from the line ( "axis ) would that have shown up as a error for me.
yes, when you first load a map it has to cache and precache everything it needs, so restarting clears all that out and leaves only the basics.
most likely you'll see something liek this
BAD TOKEN:
TOKEN_DOLLAR
$
on line 12
and you can go to line 12 in your script and hopefully that sign will look out of place and you can go correct it.
most likely you'll see something liek this
BAD TOKEN:
TOKEN_DOLLAR
$
on line 12
and you can go to line 12 in your script and hopefully that sign will look out of place and you can go correct it.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
Well all seems ok didnt get any Errors or tokens so I think the map is going to be fine. I have not run it yet in multiplayer mode but will be testing it out tomorrow with luck. The map runs fine in offline mode.
Just to let you know the map has 2 obj.
1 is to destroy / blow up the v2 control room
2 obj is to destroy the communications room
while all this is going on I have a V2 rocket moving below ground through gates & stuff into a silo ready for lift off.
after about a min or so the engines sound & the v2 takes to the sky. Its taken me sometime to work out how to add wave files & get the v2 movement correct or lets say i'm happy with it.
It all works at the moment & i have set the roundtime limit for 10 mins.
Just hope the map will be played lol.
thank you again
Just to let you know the map has 2 obj.
1 is to destroy / blow up the v2 control room
2 obj is to destroy the communications room
while all this is going on I have a V2 rocket moving below ground through gates & stuff into a silo ready for lift off.
after about a min or so the engines sound & the v2 takes to the sky. Its taken me sometime to work out how to add wave files & get the v2 movement correct or lets say i'm happy with it.
It all works at the moment & i have set the roundtime limit for 10 mins.
Just hope the map will be played lol.
thank you again
dont worry about it, everyone makes these mistakes.
since your script isnt very big i suggest jsut going through it word for word and checking that you spelled everything right, the human mind sometimes skims oevr things even if they're wrong... like i bet you didnt catch that one?
sorry, but it jsut goes to prove 
I'd do it now but i'm extremely tired.
since your script isnt very big i suggest jsut going through it word for word and checking that you spelled everything right, the human mind sometimes skims oevr things even if they're wrong... like i bet you didnt catch that one?
I'd do it now but i'm extremely tired.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
thanks all
I just like to say thank you to all of you that have helped me with my script errors, easy & silly errors to make but it happens.
The map runs great with a few people on it, in a few days time I will upload it to our clan & give it a full testing.
Thanks very much again to you all.
When I have tested it out over the week would you like to see the map. I'm not brilliant at building but i have got the map to do what I want it to do & i have a V2 rocket flying.
The map runs great with a few people on it, in a few days time I will upload it to our clan & give it a full testing.
Thanks very much again to you all.
When I have tested it out over the week would you like to see the map. I'm not brilliant at building but i have got the map to do what I want it to do & i have a V2 rocket flying.


