mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
Best effort loading waypoints
This commit is contained in:
parent
658dac613f
commit
5cad48b5ba
@ -978,6 +978,15 @@ load_waypoints()
|
||||
level.waypoints[i].bots["allies"] = 1;
|
||||
level.waypoints[i].bots["axis"] = 1;
|
||||
|
||||
if (!isDefined(level.waypoints[i].children) || !isDefined(level.waypoints[i].children.size))
|
||||
level.waypoints[i].children = [];
|
||||
|
||||
if (!isDefined(level.waypoints[i].origin))
|
||||
level.waypoints[i].origin = (0, 0, 0);
|
||||
|
||||
if (!isDefined(level.waypoints[i].type))
|
||||
level.waypoints[i].type = "crouch";
|
||||
|
||||
level.waypoints[i].childCount = level.waypoints[i].children.size;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user