
Muscl3r
Joined: May 22, 2010
dont pray 4 easy lives...pray to be STRONGER MEN
|
Posted: Mar 31, 2011 05:37 PM
Msg. 1 of 11
Here is my lives script:
(script continuous lives (set cheat_deathless_player true) (sleep_until (<= (unit_get_health (unit (list_get (players) 0))) 0.01) 1) (player_enable_input 0) (fade_out 1 1 1 15) (sleep 30) (object_teleport (unit (list_get (players) 0)) hide) (set lives (- lives 1)) (player_add_equipment (unit (list_get (players) 0)) none true) (object_cannot_take_damage (players)) (object_teleport (unit (list_get (players) 0)) start) (fade_in 1 1 1 30) (player_enable_input 1) (sleep 30) (player_add_equipment (unit (list_get (players) 0)) loadout1 true) (sleep 500) (object_can_take_damage (players)) )
Whats wrong with it is when you "respawn" you have the weapons in loadout1 and also the weapon you had readied when you died.
How can i fix this? Edited by Muscl3r on Mar 31, 2011 at 05:37 PM
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Mar 31, 2011 06:06 PM
Msg. 2 of 11
I dunno, usually the true in player_add_equipment keeps that from happening.
|
|
|

Muscl3r
Joined: May 22, 2010
dont pray 4 easy lives...pray to be STRONGER MEN
|
Posted: Mar 31, 2011 08:30 PM
Msg. 3 of 11
I ntoiced that in a different lives script it has (set load_available true) in it but when I try use it sapien says its an invalid global. Do i need that command or something?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Mar 31, 2011 09:10 PM
Msg. 4 of 11
load_available is an extraneous variable that you don't need to bother with.
|
|
|

Muscl3r
Joined: May 22, 2010
dont pray 4 easy lives...pray to be STRONGER MEN
|
Posted: Mar 31, 2011 09:52 PM
Msg. 5 of 11
Ok. Well i tried changing the palyer_add_equipment things to false instead of true which only made things worse
Next I will try changing the loadout 1 command to false and leave the other one as true
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Mar 31, 2011 09:55 PM
Msg. 6 of 11
Worse? What happened?
|
|
|

Muscl3r
Joined: May 22, 2010
dont pray 4 easy lives...pray to be STRONGER MEN
|
Posted: Mar 31, 2011 09:56 PM
Msg. 7 of 11
You respawned with 4 guns instead of 2. The guns you had when you "died" were the extra two guns
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Mar 31, 2011 09:59 PM
Msg. 8 of 11
Yes, hmm. That part is supposed to happen. What exactly is the 'none' profile?
|
|
|

Muscl3r
Joined: May 22, 2010
dont pray 4 easy lives...pray to be STRONGER MEN
|
Posted: Mar 31, 2011 10:11 PM
Msg. 9 of 11
It is just a loadout with no guns. I saw it in that other live script and thought it was meant to get rid of the players weapons
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Mar 31, 2011 10:20 PM
Msg. 10 of 11
I think you should set the none profile to give the player weapons that instantly drop/destroy. That's what Mooseguy did in his firefight, I think, and how the lives system worked in solitude.
|
|
|

Muscl3r
Joined: May 22, 2010
dont pray 4 easy lives...pray to be STRONGER MEN
|
Posted: Apr 1, 2011 02:56 PM
Msg. 11 of 11
Ok, but still, if I did that, the problem would still remain about having 3 weapons?
|
|
|