Working deathmatch, link in post
rsd
Join Date: 2003-02-11 Member: 13405Members
<div class="IPBDescription">Lua ftw!</div>Ok so I've got basic (VERY basic) deathmatch working.
I currently don't have a real internet line, so using my mobile phone to post this. As such the testing I've done is 2 clients running on my pc.
Please let me know if it works as intended.
What it has:
- health counter in hud
- lousy death animation
- respawn after 10 seconds
- dead/alive indicator in hud
- score
What it needs:
- maps with spawn points spread out
- everything else
BACK UP YOUR LUA FOLDER
Then overwrite with this.
Please post feedback :)
<a href="http://www.mediafire.com/file/n2dywn02xzz/ns2-dm.zip" target="_blank">http://www.mediafire.com/file/n2dywn02xzz/ns2-dm.zip</a>
Dirty hack disclaimer:
I'm on my way out, so I had to rush this. It's a series of dirty hacks intended to get something vaguely functional out there. It can and will be done far better than this.
I currently don't have a real internet line, so using my mobile phone to post this. As such the testing I've done is 2 clients running on my pc.
Please let me know if it works as intended.
What it has:
- health counter in hud
- lousy death animation
- respawn after 10 seconds
- dead/alive indicator in hud
- score
What it needs:
- maps with spawn points spread out
- everything else
BACK UP YOUR LUA FOLDER
Then overwrite with this.
Please post feedback :)
<a href="http://www.mediafire.com/file/n2dywn02xzz/ns2-dm.zip" target="_blank">http://www.mediafire.com/file/n2dywn02xzz/ns2-dm.zip</a>
Dirty hack disclaimer:
I'm on my way out, so I had to rush this. It's a series of dirty hacks intended to get something vaguely functional out there. It can and will be done far better than this.
Comments
Feel free to change it if it suits you better.
We'll have a very crappy hack of NS Combat up and running via the community before we even see NS2 Alpha!
YES.
This will be JUST like 1.02/1.03 (I believe those are the versions)
Does anyone else remember the exploit where you could drop your bite or parasite and pick up an LMG?!
XD
It's not an existing function, I added it, hence the dodginess. I've only been coding in Lua for about 3 hours now, so any deviations from convention must be forgiven.
Also you might notice PlayerSkulk.lua and BiteGun.lua. I started working on skulks but got side tracked by deathmatch. Run animations are missing from skulks sadly so I didn't see too much point in bothering. Plus implementing wall walking is a bit daunting.
I've already got the biting done, that was quite simple. wallwalking...eek.
Next up is more work on the DM + rifle butt slap though. Animations are there an logic is dead simple.
Can someone get a public DM server up and running? I want to give it a shot before I have to head off!
Name: Phase in vent.
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->local angles = Angles(input.pitch, input.yaw, 0.0)<!--QuoteEnd--></div><!--QuoteEEnd-->
I have some stuff to do but will leave up my game running so anyone can enjoy it and give my comp a small test.
Have fun peeps
Add me to steam!
<a href="http://steamcommunity.com/id/rulgrok" target="_blank">http://steamcommunity.com/id/rulgrok</a>
Then type
Connect some.numbers.here.yeah:27015orwhatever
After pressing ~ a console shows up.
In there you type
connect 123.123.123.123
Where 123.123.123.123 is the IP address of the person hosting the game.
In there you type
connect 123.123.123.123
Where 123.123.123.123 is the IP address of the person hosting the game.<!--QuoteEnd--></div><!--QuoteEEnd-->
ahh ok cheers, that makes more sense lol
You're welcome.
Thanks for the quick 'n dirty mod RSD.
Join up guys don't make two DM modes don't confuse the players.
Also, I disagree with Skyforger2, the more DM modes the better (to a certain point), it creates competition and drives each developer to make a better deathmatch.