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 »cats have nine lives. Odst's have...

Author Topic: cats have nine lives. Odst's have... (11 messages, Page 1 of 1)
Moderators: Dennis

Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 10, 2010 11:57 PM    Msg. 1 of 11       
just wondering how to give the player lives in sp and how many lives do you start off with in odst firefights?


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Dec 11, 2010 12:57 AM    Msg. 2 of 11       
It was posted by Moooseguy a while ago in a thread. Good hunting


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 11, 2010 12:59 AM    Msg. 3 of 11       
I'm sure someone could just answer in this thread


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Dec 11, 2010 01:03 AM    Msg. 4 of 11       
Ask Gamma927 or Moooseguy.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 11, 2010 08:27 AM    Msg. 5 of 11       
juan says its eight on easy and 7 on normal. Now i just need to know how to set up the lives system please somebody.


spartin115
Joined: Sep 26, 2009


Posted: Dec 12, 2010 12:17 AM    Msg. 6 of 11       

(global short lives 7)

(global short points1 0)

(script continuous gameover
(if (= lives 0) (game_lost))
)

(script continuous life_lost
(set cheat_deathless_player true)
(sleep_until (<= (unit_get_health (unit (list_get (players) 0))) 0.01) 1)
(player_enable_input false)
(fade_out 1 0 0 60)
(sleep 60)
(set lives (- lives 1))
(object_create_anew skull)
(object_teleport skull spawn)
(object_teleport (unit (list_get (players) 0)) spawn)
(player_add_equipment (unit (list_get (players) 0)) ball false)
(sleep 30)
(player_add_equipment (unit (list_get (players) 0)) none true)
(sleep 30)
(if (= loadout 0) (player_add_equipment (unit (list_get (players) 0)) loadout1 true))
(if (= loadout 1) (player_add_equipment (unit (list_get (players) 0)) loadout2 true))
(object_create_anew skull)
(fade_in 0 0 0 90)
(player_enable_input true)
(sleep 10)
(object_create_anew skull)
)


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 12, 2010 12:46 AM    Msg. 7 of 11       
ah i see. Interesting script but if you put on the deathless player cheat doesn't that make the player not take damage?


Ro0ster
Joined: Jan 21, 2008

is a rooster


Posted: Dec 12, 2010 12:31 PM    Msg. 8 of 11       
Quote: --- Original message by: Muscl3r
ah i see. Interesting script but if you put on the deathless player cheat doesn't that make the player not take damage?
I'm pretty sure it just doesn't let you die, because your shields still get striped away and your health will go to one bar if enough damage is taken. Thus the player will still take damage, but their health will always be greater than zero.


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 14, 2010 05:29 AM    Msg. 9 of 11       
Deathless is there to fake an illusion of death. What the script seems to do, from my interpretation, is make the player think he's dying after his health goes below one bar. Then it deducts one from the lives variable (global short lives), and resets the player's health, thus making it seem as though the player has respawned (visually, the screen fades out and it respawns the player back at the spawnpoint). When the last life is down, a script should, by right turn deathless off:

(script startup nomorelives
(if ( = lives 0 ) )
(cheat_deathless_player 0)
)

...which will cause the player to die and restart the level if his lives run out.
Edited by Polamee on Dec 14, 2010 at 05:30 AM


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Dec 14, 2010 05:32 AM    Msg. 10 of 11       
I have a MUCH more refined life_lost script, I'll post it later when I have access to it.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 14, 2010 05:34 AM    Msg. 11 of 11       
Gracias. En caso de ser muy útil para combate de la ciudad

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:43 AM 140 ms.
A Halo Maps Website