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 »Does anyone have the coldsnap script to detect gametype?

Author Topic: Does anyone have the coldsnap script to detect gametype? (7 messages, Page 1 of 1)
Moderators: Dennis

chrisk123999
Joined: Aug 10, 2008

=CE= Chris [Captain] [=]


Posted: Jun 11, 2009 11:52 PM    Msg. 1 of 7       
^ Title says all.


Mythril
-
Screenshot Guru
-
Joined: Mar 29, 2008

Jeffrey Albert Waldo


Posted: Jun 12, 2009 03:46 AM    Msg. 2 of 7       
I recall reading somewhere that it was a method by spawning bipeds and weapons underneath them that only spawned on certain gametypes, which exploded.

So, for example:

Biped named CTF spawned. An Assault Rifle is placed at it's feet and is set to spawn only on the CTF gametype. When it does, it explodes, like the FRG in the H1 Campaign. The script detects when the CTF biped is dead, and so, determines which gametype it is. I believe it was used to change scenery around in Coldsnap.


stennett
Joined: Dec 4, 2008


Posted: Jun 12, 2009 12:03 PM    Msg. 3 of 7       
^ that is true. but i think he wanted the actual script? lol..


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jun 12, 2009 12:19 PM    Msg. 4 of 7       
Once you understand the concept, it's easy to write it.

(global boolean ctf false)

(global boolean race false)

(global boolean slayer false)

(global boolean oddball false)

(global boolean koth false)

(script startup detect_gametype
(sleep 120)
(if
(= (unit_get_health ctf) 0)
(begin
(set ctf true)
)
)
(if
(= (unit_get_health slayer) 0)
(begin
(set slayer true)
)
)
(if
(= (unit_get_health koth) 0)
(begin
(set koth true)
)
)
(if
(= (unit_get_health oddball) 0)
(begin
(set oddball true)
)
)
(if
(and
(= (unit_get_health oddball) 1)
(= (unit_get_health ctf) 1)
(= (unit_get_health slayer) 1)
(= (unit_get_health koth) 1)
)
(begin
(set race true)
)
)
)


chrisk123999
Joined: Aug 10, 2008

=CE= Chris [Captain] [=]


Posted: Jun 12, 2009 12:37 PM    Msg. 5 of 7       
Ok, thanks for the script. How would I go around making the weapons explode?


Koo294
Joined: Nov 30, 2008

How is she when she doesn't surf?


Posted: Jun 12, 2009 12:55 PM    Msg. 6 of 7       
theres a flag in the weapons, "explodes when dropped".


chrisk123999
Joined: Aug 10, 2008

=CE= Chris [Captain] [=]


Posted: Jun 12, 2009 01:00 PM    Msg. 7 of 7       
I just riped it from Coldsnap, It's assault rifle test I think.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:37 PM 500 ms.
A Halo Maps Website