Zakładanie drabinki na botach
Nie wiem jak to zrobić .... znalazłem ale po angielsku :-P .3.1 Ladders
This section describes how to set up bot-climbable ladders. First, you need to define a route with an action node. Place one node in front of the ladder. Add key $action with value ‘ladder’. Also set an ‘#actionset’ key, which is a unique number per ladder. Assuming this is your first ladder, this value should be 1.
The setup of the actual ladder is slightly more complicated. You need to add two script_origins, one at the bottom of your ladder and one at the top. Place them about 32 units off the ladder surface. The bottom script_origin should be placed exactly at the floor underneath the ladder. The top entity should be at the level of the higher floor. Targetname the bottom entity ‘ladderbottom’ and the top origin ‘laddertop’. Give both entities a #set key which is equal to the #actionset value of the corresponding route node, for example 1.
Finally you need to define the angle of a bot climbing the ladder. This should be done using the ‘angles’ key. To find the apprioriate angles, just apply a regular angle first. Make both origins point at the ladder. Then, add an angles key to both entities which should consist of three numbers: pitch, yaw and roll. As you'll generally only want to modify the yaw the bots use, the first and last number should just be a 0. So, add a value of ‘0 (angle) 0’, for example ‘0 90 0’ for an angle of 90. Then, remove the angle key. The reason for this expedient method is that the script isn't able to read the angle key from the map.
Your ladder is now ready to be used. Bots will climb or descend it whenever following the route the ladder is part of. If you find the bots behaviour towards ladders doesn't look very well, you can often improve this by nudging the top and bottom nodes a bit. Also make sure you test the bots by shooting them while they're climbing a ladder. If they fly upwards after they died, you need to increase the distance of bottomnode and topnode to the ladder surface.
rozumie to ktoś ????
Zgłoś post do moderatora | IP: Zalogowane
|