mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 10:15:44 +00:00
Best efforts
This commit is contained in:
parent
8821026afd
commit
6c20b7fd71
@ -1073,6 +1073,15 @@ load_waypoints()
|
|||||||
level.waypoints[i].bots["allies"] = 1;
|
level.waypoints[i].bots["allies"] = 1;
|
||||||
level.waypoints[i].bots["axis"] = 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;
|
level.waypoints[i].childCount = level.waypoints[i].children.size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user