I followed the tutorial and did every step. Im thinking it could be my Script. Here it is, tell me if you see anything wrong. thanx
main:
level waittill prespawn
exec global/cardgame.scr
$world farplane 8100
$world farplane_color (.333 .333 .329)
$hungryguy thread global/eat.scr::eating
$wrenchguy4 thread worker
$wrenchguy5 thread worker
$hungryguy thread global/eat.scr::eating
exec global/DMprecache.scr
level.script = maps/obj/objtest.scr
exec global/ambient.scr m4l1
exec global/door_locked.scr::lock
setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "Hunt2 By BiG_HeaD"
level waittill spawn
$mybomb thread global/jv_obj_dm.scr::bomb_thinker
level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker
waitthread global/jv_bots/jv_mp_ai.scr::enable
$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb
$bomb thread global/jv_obj_dm.scr::bomb_thinker
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
worker:
println "Starting work"
self holster
self anim working_wrench_pullout
self waittill animdone
while (self.thinkstate == "idle")
{
println "working..."
self anim working_wrenching
self waittill animdone
}
self.gun = "Walter p38"
println "homer angry! HOMER SMASH!"
self unholster
end
welding:
self forceactivate
//self thread welderdeath
self.enableEnemy = 0
//self exec global/setdeathanim.scr "welding_death"
self anim welding_init
wait 5
while (isAlive self)
{
self anim welding_start
self waittill animdone
self anim welding_action
wait (randomint(10) + 5)
self anim welding_end
self waittill animdone
self anim welding_idle
wait (randomint(5) + 5)
}
spawn script_model model "models/miscobj/welding_tank.tik" targetname ((self.targetname) + "big1")
$((self.targetname) + "big1") notsolid
$((self.targetname) + "big1").origin = self.origin
$((self.targetname) + "big1").angles = self.angles
$((self.targetname) + "big1") anim tank_death
end
Welder isnt working either??
Jeeps-Wont do anything.
Moderator: Moderators
Ok, pretend you are the script. You dont do ANYTHING unless told to do it.
Look at the welding thread. It is a thread. Usually threads wait to be called before doing anything. If I were the script, I would say, "Hmm I see a thread welding, I won't do anything in that thread until I am told to do it." You have to make something call the thread. I mean look at it.
self forceactivate
"Who the **** is self?" I want you to answer this question. How does the script know who self is? Huh? Huh??
Whatever your welding guy's targetname is, put this under waittill prespawn
Now for the jeep...
Same rules apply here. Usually things don't do anything unless the script tells them to do something. There is NO reference to jeeps in your script. So if you put a jeep in your map, and targetname it "jeep", it's just gonna sit there, because you didnt tell it anything to do. Did you use the jeep tutorial at this site? You didn't follow every step, because you have to make a script for it, and you didn't do any scripting steps in the tut...
Look at the welding thread. It is a thread. Usually threads wait to be called before doing anything. If I were the script, I would say, "Hmm I see a thread welding, I won't do anything in that thread until I am told to do it." You have to make something call the thread. I mean look at it.
self forceactivate
"Who the **** is self?" I want you to answer this question. How does the script know who self is? Huh? Huh??
Whatever your welding guy's targetname is, put this under waittill prespawn
Code: Select all
$mytargetnameweldingdude thread weldingSame rules apply here. Usually things don't do anything unless the script tells them to do something. There is NO reference to jeeps in your script. So if you put a jeep in your map, and targetname it "jeep", it's just gonna sit there, because you didnt tell it anything to do. Did you use the jeep tutorial at this site? You didn't follow every step, because you have to make a script for it, and you didn't do any scripting steps in the tut...
main:
level waittill prespawn
level.slowspeed = 150 //slowest speed of jeep
level.fastspeed = 250 //fastest speed of jeep
level.lookahead = 256
level.grillo = $oss_man //our lovable Grillo
level.playerjeep = $playerjeep //our jeep
level.playerjeep thread global/vehicles_thinkers.scr::PLAYER_JEEP_CONTROLLER
level.playerjeep thread PLAYER_JEEP_Drive
exec global/cardgame.scr
$world farplane 8100
$world farplane_color (.333 .333 .329)
$hungryguy thread global/eat.scr::eating
$wrenchguy4 thread worker
$wrenchguy5 thread worker
$hungryguy thread global/eat.scr::eating
$mytargetnameweldingdude thread welding --gotta fix it i know
exec global/DMprecache.scr
level.script = maps/obj/objtest.scr
exec global/ambient.scr m4l1
exec global/door_locked.scr::lock
setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "Hunt2 By BiG_HeaD"
level waittill spawn
$mybomb thread global/jv_obj_dm.scr::bomb_thinker
PLAYER_JEEP_Drive:
level.playerjeep drive $t7 level.slowspeed 40 200 level.lookahead //tells jeep to drive to t1
level.playerjeep waittill drive
level.playerjeep stop //stops jeep at last waypoint
end
level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker
waitthread global/jv_bots/jv_mp_ai.scr::enable
$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb
$bomb thread global/jv_obj_dm.scr::bomb_thinker
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
worker:
println "Starting work"
self holster
self anim working_wrench_pullout
self waittill animdone
while (self.thinkstate == "idle")
{
println "working..."
self anim working_wrenching
self waittill animdone
}
self.gun = "Walter p38"
println "homer angry! HOMER SMASH!"
self unholster
end
welding:
self forceactivate
//self thread welderdeath
self.enableEnemy = 0
//self exec global/setdeathanim.scr "welding_death"
self anim welding_init
wait 5
while (isAlive self)
{
self anim welding_start
self waittill animdone
self anim welding_action
wait (randomint(10) + 5)
self anim welding_end
self waittill animdone
self anim welding_idle
wait (randomint(5) + 5)
}
spawn script_model model "models/miscobj/welding_tank.tik" targetname ((self.targetname) + "big1")
$((self.targetname) + "big1") notsolid
$((self.targetname) + "big1").origin = self.origin
$((self.targetname) + "big1").angles = self.angles
$((self.targetname) + "big1") anim tank_death
end
level waittill prespawn
level.slowspeed = 150 //slowest speed of jeep
level.fastspeed = 250 //fastest speed of jeep
level.lookahead = 256
level.grillo = $oss_man //our lovable Grillo
level.playerjeep = $playerjeep //our jeep
level.playerjeep thread global/vehicles_thinkers.scr::PLAYER_JEEP_CONTROLLER
level.playerjeep thread PLAYER_JEEP_Drive
exec global/cardgame.scr
$world farplane 8100
$world farplane_color (.333 .333 .329)
$hungryguy thread global/eat.scr::eating
$wrenchguy4 thread worker
$wrenchguy5 thread worker
$hungryguy thread global/eat.scr::eating
$mytargetnameweldingdude thread welding --gotta fix it i know
exec global/DMprecache.scr
level.script = maps/obj/objtest.scr
exec global/ambient.scr m4l1
exec global/door_locked.scr::lock
setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "Hunt2 By BiG_HeaD"
level waittill spawn
$mybomb thread global/jv_obj_dm.scr::bomb_thinker
PLAYER_JEEP_Drive:
level.playerjeep drive $t7 level.slowspeed 40 200 level.lookahead //tells jeep to drive to t1
level.playerjeep waittill drive
level.playerjeep stop //stops jeep at last waypoint
end
level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker
waitthread global/jv_bots/jv_mp_ai.scr::enable
$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb
$bomb thread global/jv_obj_dm.scr::bomb_thinker
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
worker:
println "Starting work"
self holster
self anim working_wrench_pullout
self waittill animdone
while (self.thinkstate == "idle")
{
println "working..."
self anim working_wrenching
self waittill animdone
}
self.gun = "Walter p38"
println "homer angry! HOMER SMASH!"
self unholster
end
welding:
self forceactivate
//self thread welderdeath
self.enableEnemy = 0
//self exec global/setdeathanim.scr "welding_death"
self anim welding_init
wait 5
while (isAlive self)
{
self anim welding_start
self waittill animdone
self anim welding_action
wait (randomint(10) + 5)
self anim welding_end
self waittill animdone
self anim welding_idle
wait (randomint(5) + 5)
}
spawn script_model model "models/miscobj/welding_tank.tik" targetname ((self.targetname) + "big1")
$((self.targetname) + "big1") notsolid
$((self.targetname) + "big1").origin = self.origin
$((self.targetname) + "big1").angles = self.angles
$((self.targetname) + "big1") anim tank_death
end