player lives

player lives

Re: player lives Posted by Henley on Fri Feb 15th 2008 at 3:16am
Henley
2 posts
Posted 2008-02-15 3:16am
Henley
member
2 posts 0 snarkmarks Registered: Feb 15th 2008
Hey guys just wondering if any of you have seen or made something
similar that can help me get player respawns set to a limit number so 5
lives u die 5 times game over.<br style="color: white;"><br style="color: white;">Im
thinking could be set to a math_count entity or something
similar.<br style="color: white;">Anyways any links or advice
would be great!
Re: player lives Posted by reaper47 on Fri Feb 15th 2008 at 4:16pm
reaper47
2827 posts
Posted 2008-02-15 4:16pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
As people share spawns randomly, it's difficult to have "lives" for individual players. Maybe in a team game with only 1 spawn per team? You would need an "onSpawn" output or similar so you can send "counting" outputs to the math_counter each time a player respawns. As far as I know no such output exists :/

Maybe if you put the spawns elsewhere and teleport players in via a trigger_teleport (which has an "OnTrigger" output which could fire the math_counter).

almost everything's possible with a little patience. If you want an easy, tested solution - I'm sorry, I can't provide that.

Maybe you should reevaluate how useful such a system would be for a game. It's hard for me to see what you're up to. Especially since you didn't provide a description for the kind of map you're going to make (and the game you're doing it for). :wink:
Why snark works.
Re: player lives Posted by Henley on Fri Feb 15th 2008 at 5:06pm
Henley
2 posts
Posted 2008-02-15 5:06pm
Henley
member
2 posts 0 snarkmarks Registered: Feb 15th 2008
ok well its a map for my mod http://www.moddb.com/mods/10588/gauntlet called Gauntlet which is a basic (so far) remake of everything good about arcade gaming. So this would need to be done for single player, i dont mind if its hard code or mapping that i need to do, i would really just love for this to work.

That on trigger should work, im not to sure about having the triggers work after the player dies, it would be nicer to have a env entity that reloads the player back to full health on where they died.

Another feature which i dont know if you guys could help me out on is i need to have a scoreboard for the player to look at while he/she is playing. For example kill this npc and you get 3 points, pick up that weapon 6 points etc etc.

ATM im using the mod SMOD to work up from, but i plan to change that (because not everyone can use SMOD). Anyways i hope that helps.
Re: player lives Posted by reaper47 on Fri Feb 15th 2008 at 8:21pm
reaper47
2827 posts
Posted 2008-02-15 8:21pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
For singleplayer... that changes things.

I especially don't know how respawns would work in SP (isn't there only a load/save function which would reset all entities?). I guess you'd have to look into coding here, which I am not an expert in. Good luck, I'm out. ^^
Why snark works.