proplem no win for allies ............ JV?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

proplem no win for allies ............ JV?

Post by small_sumo »

When the timer times out it just starts again, um maybe this should be in bots section, my friend and I played both on allies side (defenders) and when the timer ran down it just started again, is it because we were on the same team?

This for my hood map with bots, you get a win if axis and blow up the hood.

Thanks
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm that's odd :? did you set level.clockside?
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

This is it pretty much..........

//level.spottarget = NULL
//level.camera_speed = .3
level.jvbot_showavatar = 0
level.debug_light = 0
level.jvbot_respawning = 1 // uhm, better just leave at 1 for the beta
level.alliesbots = 4 // max number of bots
level.axisbots = 4
level.dmrespawning = 1 // respawn players, necessary!
level.dmroundlimit = 10
level.clockside = "allies" // allies win when timelimit is hit
level.defusing_team = "allies"
level.planting_team = "axis" // can be set per individual bomb as well by using the $plantteam key
level.bomb_damage = 512
level.bomb_explosion_radius = 512
level.jvbot_tasks_priority[follow] = 3

//weapon preferences ***************************************************************
level.jvbot_weapon_priority["m1 garand"] = 0
level.jvbot_weapon_priority["springfield '03 sniper"] = 0
level.jvbot_weapon_priority["thompson"] = 50
level.jvbot_weapon_priority["bar"] = 0
level.jvbot_weapon_priority["shotgun"] = 20
level.jvbot_weapon_priority["high standard"] = 0
level.jvbot_weapon_priority["colt 45"] = 0
level.jvbot_weapon_priority["bazooka"] = 0
//level.jvbot_weapon_priority["mauser kar 98k"] = 0
level.jvbot_weapon_priority["mauser kar 98d sniper"] = 0
level.jvbot_weapon_priority["mp40"] = 50
level.jvbot_weapon_priority["stg44"] = 0
level.jvbot_weapon_priority["walter p38"] = 0
level.jvbot_weapon_priority["panzerschrek"] = 0


$bomb thread global/jv_obj_dm.scr::bomb_thinker
level.routelist[bomb] = top::boilerroom //::lower
//level.routelist[bomb] = top
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots
while !(level.roundstart)
wait 0.5
thread axis_win_check
wait 1

$hood2_intro playsound hood2_intro

end

axis_win_check:
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

ect.....

thread axis_win_check
thread allied_win_timer
wait 1

etc.....

//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------

allied_win_timer:

level waittill allieswin

end
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm a restarting timer really seems impossible when I look at the bots scripts :? maybe you could make a log?
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

allied_win_timer

Post by tltrude »

Couldn't there be a delay in the allied_win_timer thread and a while statement to prevents axis victory if the allies win?
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Not sure what you mean but if you're referring to this:

allied_win_timer:

level waittill allieswin

end

Then have no fear, it doesn't do anything anyway :)
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

I need to do more testing but from memory my bridge map had no trouble with the timer and this is the code I used in it. I will do more tetsing and get back to this thread.

Its all a bit wierd, I hate releasing maps with mistakes in em.


level waittill spawn ///////////////////////***********************************************************




thread scientistidle
$good_soldier exec global/disable_ai.scr
$good_soldier thread salute
$guy1 exec global/disable_ai.scr
$guy2 exec global/disable_ai.scr
$guy4 exec global/disable_ai.scr
//thread flyby
level.jvbot_showavatar = 0
level.debug_light = 0
level.jvbot_respawning = 1 // uhm, better just leave at 1 for the beta
level.alliesbots = 9 // max number of bots
level.axisbots = 4
level.dmrespawning = 1 // respawn players, necessary!
level.dmroundlimit = 6
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.bomb_damage = 128
level.bomb_explosion_radius = 128
level.jvbot_tasks_priority[follow] = 3
level.jvbot_weapon_priority["bazooka"] = 5
level.jvbot_weapon_priority["panzerschrek"] = 5
level.jvbot_weapon_priority["springfield '03 sniper"] = 0
level.jvbot_weapon_priority["mauser kar 98d sniper"] = 0

level.routelist[bomb2] = back::front

$bomb thread global/jv_obj_dm.scr::bomb_thinker
$bomb2 thread global/jv_obj_dm.scr::bomb_thinker



waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots

thread tanks

while !(level.roundstart)
wait 0.5
thread allied_win_check

level.camera_speed = 1.4


end
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply