A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »**Idea for a SP**

Author Topic: **Idea for a SP** (3 messages, Page 1 of 1)
Moderators: Dennis

tylerp14
Joined: Oct 12, 2010

Ohai der...


Posted: Jun 2, 2011 07:38 PM    Msg. 1 of 3       
Ok so here's what I want to do, there would be a flag or something that you have to defend against the covenant that have to run up to your base and try and take it, and once they take it back to their base or something the mission would fail and start over, and you would have to try and defend the base for like 20 waves.

Would this be possible and can I get some help with it?


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jun 2, 2011 08:48 PM    Msg. 2 of 3       
Place some vehicle to act as the flag. Attach two AI on it looking at each other (examine the portal gun script) When a AI is inside that, attach the vehicle to them.

To make the AI go to the flag vehicle where ever it is, use this:
(ai_go_to_vehicle [ai] [unit] [string])

(thats why its a vehicle)

When the vehicle is attached, make the person its attached to head back to base, and leave the rest of the AI still trying to go to the vehicle (then he has people protecting him, etc, or ready to grab it on his death, etc. Probably want some AI that don't care about the flags existence that just run around to reek havoc so you don't just bomb the swam to kill everyone)

If its attached to someone, and they are dead, detach the object from them.


Since you don't want them using weapons during this time when carrying the flag, since player_add_equipment spesifies unitr, I see no reason why it wouldn't work on AI instead of only players
(player_add_equipment [unit] [starting_profile] [boolean])


When they get to their base, just do a volume test for the vehicle and if the vehicle is there, (game_lost)


tylerp14
Joined: Oct 12, 2010

Ohai der...


Posted: Jun 2, 2011 10:57 PM    Msg. 3 of 3       
Sweet, thanks

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:36 AM 141 ms.
A Halo Maps Website