Bomb won't set on objective
Moderator: Moderators
Bomb won't set on objective
I am creating server side map mods for the objective maps. The bomb on the flak on the map the hunt will not set. I know I have run into this problem before and it was because there was a plane in the map, but I didn't add one in. There are also no errors in the console. Does anyone have any idea why this is happening?
guess
How can we know what you screwed up in your script? My guess would be that you put an "end" line before the bomb thinker lines.
I didn't see any extra ends. If you want to see my script then here it is.
http://www.strafersmods.l2p.net/mods/obj_team1.scr
It would be too long to post on the forum.
http://www.strafersmods.l2p.net/mods/obj_team1.scr
It would be too long to post on the forum.
end
Looks like an "end" to me. The script is very bad! You can't just throw stuff in anywhere you like. It has to be in the right order to work. It's to big of a mess for me. You need to start over.
checkwin:
while(1)
{
if(level.bombs_destroyed == 2)
teamwin allies
wait .1
}
end
//////////////////////////
level waittill roundstart
//////////////////////////
//***********************************************
// bomb planting setup
//***********************************************
$flak88_weapon1_trigger thread flak88_random_setup $flak88_weapon1_explosive $flak88_weapon1 $flak88_target1 $flak88_base1 4
$flak88_weapon1_explosive thread global/obj_dm.scr::bomb_thinker
checkwin:
while(1)
{
if(level.bombs_destroyed == 2)
teamwin allies
wait .1
}
end
//////////////////////////
level waittill roundstart
//////////////////////////
//***********************************************
// bomb planting setup
//***********************************************
$flak88_weapon1_trigger thread flak88_random_setup $flak88_weapon1_explosive $flak88_weapon1 $flak88_target1 $flak88_base1 4
$flak88_weapon1_explosive thread global/obj_dm.scr::bomb_thinker
-
LiquorKraZy
- Captain
- Posts: 267
- Joined: Tue Aug 10, 2004 5:38 am
- Location: CA
- Contact:
I see it, after level waittill spawn you have your mods then an END, the bombthinker is not even being called..
Move these line up under waittill spawn BEFORE the END on the MAIN method.
//***********************************************
// bomb planting setup
//***********************************************
$flak88_weapon1_trigger thread flak88_random_setup $flak88_weapon1_explosive $flak88_weapon1 $flak88_target1 $flak88_base1 4
$flak88_weapon1_explosive thread global/obj_dm.scr::bomb_thinker
Move these line up under waittill spawn BEFORE the END on the MAIN method.
//***********************************************
// bomb planting setup
//***********************************************
$flak88_weapon1_trigger thread flak88_random_setup $flak88_weapon1_explosive $flak88_weapon1 $flak88_target1 $flak88_base1 4
$flak88_weapon1_explosive thread global/obj_dm.scr::bomb_thinker
An ambiguous question will get a similar answer...
No no no.... The scr always should follow a set format.strafer wrote:So what you are saying is to take out the end before any threads start for my mods?
main:
cvars etc here
level waittill prespawn
exec dmstuff
start ambient sounds etc
level waittill spawn
call all your regular threads from here
thread grassy_is_cool
also set up any regular level variables
//obj game
level waittill roundstart
command lines for bomb stuff here
here set up any obj related level variables
//end of main method
end
//all threads go down here
Grassy_is_cool:
while($grassy Isalive) {
all praise $grassy
}
end
An ambiguous question will get a similar answer...

