Page 1 of 2
2 bombs
Posted: Wed Sep 29, 2004 9:31 am
by Hell_Soldier
i need a script which will let me plant 2 bombs in my map. (2 obj)
Posted: Wed Sep 29, 2004 9:44 am
by Bjarne BZR
Posted: Wed Sep 29, 2004 1:19 pm
by Hell_Soldier
the same tutorials are on this .map site.
im searching for tutorials to combine specifically 2 bombs.
the link above is for bomb and steal.
Posted: Wed Sep 29, 2004 1:31 pm
by Bjarne BZR
Well, if the bombs have different #set values ( 1 and 2 as an example ), all you need to do in the script, is tho set level.targets_to_destroy to 2 instead of 1.
Take a look at the V2 script in pak5.pk3 ( obj_team2.scr ) for an example.
Posted: Wed Sep 29, 2004 2:21 pm
by Bjarne BZR
Posted: Wed Sep 29, 2004 9:44 pm
by Hell_Soldier
as im a quick learner i already had 2 sets of exploders.
all i needed was the script.
thanks alot man!
im gonna test it now.
Posted: Wed Sep 29, 2004 10:05 pm
by Bjarne BZR
*holds thumbs*
Posted: Wed Sep 29, 2004 10:10 pm
by Hell_Soldier
k i got this error:
bad token:
TOKEN_ASSIGNMENT:
=
while(level.targets_destroyed < level.targets_to_destroy = 2) (maps/obj_bulldogs.scr, 54)
while(level.targets_destroyed < level.targets_to_destroy ^
^~^~^ Script file compile error: Couldn't parse 'maps/obj_bulldogs.scr'
ScriptMaster::GetScript: Script 'maps/obj_bulldogs.scr' was not properly loaded.
which by my educated guesses is a problem with my script in the targets to destroy line.
my allies win thread goes like this:
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy = 2)
waitframe
teamwin allies
end
is it suppose to be (...... = 2) or (...... ++)?
Posted: Wed Sep 29, 2004 10:21 pm
by Bjarne BZR
Remove the "= 2".
This:
...should only be set once in main. After that you just use the variable.
It
should lok like this:
Code: Select all
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
Posted: Wed Sep 29, 2004 10:42 pm
by Hell_Soldier
for the 2 bombs, each exploder set should have a different trigger name?
for example if the 1st bomb trigger is called panel_tirgger so the 2nd bomb trigger should be named a different name? meaning in script and in radiant.
^~^~^ Script Error: There are 2 entities with targetname 'panel_trigger'. You are using a command that requires exactly one
ERROR: Command overflow. Possible infinite loop in thread
-----------------------------------------------------------------------
my script goes like this:
// level waittill roundstart
$panel_bomb thread global/obj_dm.scr::bomb_thinker
thread allies_win_bomb
$panel_bomb thread axis_win_timer
so should i add the one of the 2nd bomb too? and where?
anyway im gonna call it a day, its late in here.
ill look at it again tomorrow morning. looking forward to your answer.
Posted: Wed Sep 29, 2004 10:57 pm
by Bjarne BZR
Yes: like this:
Code: Select all
// level waittill roundstart
$panel_bomb thread global/obj_dm.scr::bomb_thinker
$other_bomb thread global/obj_dm.scr::bomb_thinker
thread allies_win_bomb
$panel_bomb thread axis_win_timer
You cant have two bombs with the same targetname, change one of them.
Posted: Thu Sep 30, 2004 11:06 am
by Hell_Soldier
do i need the other bomb to 'thread axis win timer'?
like this:
// level waittill roundstart
$panel_bomb thread global/obj_dm.scr::bomb_thinker
$other_bomb thread global/obj_dm.scr::bomb_thinker
thread allies_win_bomb
$panel_bomb thread axis_win_timer
$other_bomb thread axis_win_timer
Posted: Thu Sep 30, 2004 12:55 pm
by Hell_Soldier
YAY!! its working! thx alot m8!!!
just one more little question, how do i make those little texture lines at the top disappear:

Posted: Thu Sep 30, 2004 1:05 pm
by At0miC
It's from the treeline brush, just select 5 sides of it by pressing ctrl+shift+left_click, and give it an no draw texture, only keep the 6th (the side you will see) how it is now
lines
Posted: Thu Sep 30, 2004 1:09 pm
by tltrude
Use common/nodraw texture on the top face of the treeline brushes. Actually, all the faces should be nodraw, except the front face. That one in the back needs to be raised up, so the trees are not cut off. Or, you can make the trees shorter.