Lerk Lift Mod
Hackepeter
Join Date: 2003-06-08 Member: 17107Members, Constellation
<div class="IPBDescription">Wings for the Gorge!</div>Hey guys!
As requested sometimes before, at last in this thread: <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=115277" target="_blank">http://www.unknownworlds.com/ns2/forums/in...howtopic=115277</a> I made a Lerk Lift Mod which allows the Lerks to pick up Gorges and fly them to unreachable places or whatever you can imagine. It's a fun mod, please don't be too serious about it ;)
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Usage:<!--sizec--></span><!--/sizec-->
Just go to a Gorge as a Lerk and press your use-key to pick him up. The Lerk can then drop the Gorge with the use-key at anytime but also the Gorge can free himself with the use-key if he thinks the Lerk is going crazy ;) There are also tool tips and sounds if a lifting is happening.
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Installation:<!--sizec--></span><!--/sizec-->
Place the "LerkLiftMod.lua" file in "ns2\lua" and add to the beginning of "Alien_Server.lua":
Script.Load("lua/LerkLiftMod.lua")
Only install it if you host a server!
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->How it works:<!--sizec--></span><!--/sizec-->
It's a server only mod, so your clients don't have to install anything. You can also turn the mod on and off at anytime (also mid game) and you can set if it should be enabled by default if you start your server. So you can install the mod but you don't have to run it the whole time. Just enable it if you want some fun for a few rounds :) and if your players don't like you can just disable it without restarting. The command is "lerklift 0/1" to the server console. The variable for default starting is the first one in the script.
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Under the hood:<!--sizec--></span><!--/sizec-->
It's intentionally not written as a game mod with a extra folder, instead you can install it directly to NS2 to keep GameOvermind or other mods running. I also didn't touch any single line of UWEs code. I implemented it only with unused functions in a extra script. The reason is I don't want to provide updates for every single new build and as long as they don't change the functions I used the mod should also work on future builds with out modifying (hopefully...).
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Known issues:<!--sizec--></span><!--/sizec-->
Client prediction is not working and causes jerking to the Gorge because the client don't know anything about the mod of course. If somebody knows a solution without providing a client side mod please tell me.
<a href="http://goo.gl/pavFb" target="_blank">Click here for download</a>
Version 0.1
Date: 2011-10-28
Thanks to my testers from pub.eu! The mod neither affected the server performance nor it crashed it ;)
Have fun!
As requested sometimes before, at last in this thread: <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=115277" target="_blank">http://www.unknownworlds.com/ns2/forums/in...howtopic=115277</a> I made a Lerk Lift Mod which allows the Lerks to pick up Gorges and fly them to unreachable places or whatever you can imagine. It's a fun mod, please don't be too serious about it ;)
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Usage:<!--sizec--></span><!--/sizec-->
Just go to a Gorge as a Lerk and press your use-key to pick him up. The Lerk can then drop the Gorge with the use-key at anytime but also the Gorge can free himself with the use-key if he thinks the Lerk is going crazy ;) There are also tool tips and sounds if a lifting is happening.
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Installation:<!--sizec--></span><!--/sizec-->
Place the "LerkLiftMod.lua" file in "ns2\lua" and add to the beginning of "Alien_Server.lua":
Script.Load("lua/LerkLiftMod.lua")
Only install it if you host a server!
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->How it works:<!--sizec--></span><!--/sizec-->
It's a server only mod, so your clients don't have to install anything. You can also turn the mod on and off at anytime (also mid game) and you can set if it should be enabled by default if you start your server. So you can install the mod but you don't have to run it the whole time. Just enable it if you want some fun for a few rounds :) and if your players don't like you can just disable it without restarting. The command is "lerklift 0/1" to the server console. The variable for default starting is the first one in the script.
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Under the hood:<!--sizec--></span><!--/sizec-->
It's intentionally not written as a game mod with a extra folder, instead you can install it directly to NS2 to keep GameOvermind or other mods running. I also didn't touch any single line of UWEs code. I implemented it only with unused functions in a extra script. The reason is I don't want to provide updates for every single new build and as long as they don't change the functions I used the mod should also work on future builds with out modifying (hopefully...).
<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Known issues:<!--sizec--></span><!--/sizec-->
Client prediction is not working and causes jerking to the Gorge because the client don't know anything about the mod of course. If somebody knows a solution without providing a client side mod please tell me.
<a href="http://goo.gl/pavFb" target="_blank">Click here for download</a>
Version 0.1
Date: 2011-10-28
Thanks to my testers from pub.eu! The mod neither affected the server performance nor it crashed it ;)
Have fun!
Comments
In the mean time, it needs to be installed by every server owner.
Lerkbomber could be the solution to the stalemates problem.
In the mean time, it needs to be installed by every server owner.<!--QuoteEnd--></div><!--QuoteEEnd-->
Second.
BTW I think the only the passenger (Gorge) should initiate the dropping off process to reduce griefing.
BTW I think the only the passenger (Gorge) should initiate the dropping off process to reduce griefing.<!--QuoteEnd--></div><!--QuoteEEnd-->
That's a good idea but I'm not sure about it, because of the jerking at the Gorge's client side he is maybe not able to make the release/drop in the right moment or makes wrong decisions about a particular situation. Oh man I wish I could fix that somehow. I tried <GorgeEntity>:SetGravityEnabled(false) because I think the client prediction is mainly struggling with the gravity. But the method has no effect... mhh
To the other alien classes: Yeah that's possible! There is one variable at the beginning of the script to choose the desired alien class for the lifting. It could also be extended to a list to support multiple alien classes (Gorges, Eggs, Onoses... ;D)
I think that would be a bit too OP. Considering that any decent lerk would become "invincible" and never die.
Disable healspray while the lerk is carrying the gorge, and make the lerk a bit slower when carrying a gorge.
That should help prevent this from being too OP.
You might want to override (and disable) the passenger's movement input during the lift, so the client only updates its position according to the server messages. Then you should interpolate the movement between each update to smooth it out.
I'm not 100% sure on how this can be achieved though.
I think that would be a bit too OP. Considering that any decent lerk would become "invincible" and never die.
Disable healspray while the lerk is carrying the gorge, and make the lerk a bit slower when carrying a gorge.
That should help prevent this from being too OP.<!--QuoteEnd--></div><!--QuoteEEnd-->
Yeah he can currently use all of his "weapons" also the healspray. In the first version I didn't want to make any restrictions to see how it turns out and make changes after some feedback from the players. At least in our intern tests the lifted Gorge was a easy target in the air and he got killed quite fast if marines shoot at him. But depends on the skills of the Lerk of course, too. Maybe the problem is not that serious in public games and in scrims the mod wouldn't be used anyway ;) but I like the idea with the slowdown of the Lerk if he carries a Gorge because I don't like to disable his weapons.
<!--quoteo(post=1883006:date=Nov 1 2011, 11:46 AM:name=twiliteblue)--><div class='quotetop'>QUOTE (twiliteblue @ Nov 1 2011, 11:46 AM) <a href="index.php?act=findpost&pid=1883006"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->You might want to override (and disable) the passenger's movement input during the lift, so the client only updates its position according to the server messages. Then you should interpolate the movement between each update to smooth it out.
I'm not 100% sure on how this can be achieved though.<!--QuoteEnd--></div><!--QuoteEEnd-->
Thank you for your input! But the problem is not that client tries to move with input keys or the smoothing of the movement (it is as smooth as the Lerks flight; I just copy his location in every update/tick). The real problem is that if the Gorge is in the air the client prediction is starting to make a free fall, so the client side view is dropping a inch and then gets the new real position from the server which is at the Lerk. And this down and up movement is causing the jerking. If the Lerk is just at the ground you don't have that situation and no jerking. That's why I thought disabling gravity for the Gorge would maybe help, but didn't work for some reason.
I just had an idea, maybe I can add a up velocity or acceleration to the Gorge to compensate the gravity if I just can't disable it. I'll try that :)
I'd only want this to be put in as to give gorges the ability to place defences in areas previously unreachable.
<!--quoteo(post=1882664:date=Oct 29 2011, 11:51 PM:name=Yuuki)--><div class='quotetop'>QUOTE (Yuuki @ Oct 29 2011, 11:51 PM) <a href="index.php?act=findpost&pid=1882664"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><center><object width="450" height="356"><param name="movie" value="http://www.youtube.com/v/eAOCmeVAxgI"></param><embed src="http://www.youtube.com/v/eAOCmeVAxgI" type="application/x-shockwave-flash" width="450" height="356"></embed></object></center><!--QuoteEnd--></div><!--QuoteEEnd-->
This could potentially ruin gameplay imo, as there is no drawback for carrying the gorge and they can affectively fly around attacking normally.
I'm not against fun, it's just that if this plugin becomes the norm on a majority of servers I'd prefer it to be balanced.
This same problem happens even when marines stand on invisible buildings. So I'm not sure even UWE knows how to fix this.
b) We could slow down lerk flight while carrying
My favourite:
<b>c) We could drain some energy per second for carrying</b> (means the Lerk cant do much other than flying and the gorge auto-drops after some time => if lerk has 0 energy)
Maybe also add a minimum energy requirement to pick up the gorge - so you cant just drop him and pick him up again to fly a few more meters/ repeat etc.
OR the lower the energy the slower the lerk flies with gorge... (+ a few seconds after you dropped the gorge)
I dont see how it could ruin gameplay - there are soooo many things how you could balance it...
Dont take everything as if it was set in stone guys.
Maybe also add a minimum energy requirement to pick up the gorge - so you cant just drop him and pick him up again to fly a few more meters/ repeat etc.
OR the lower the energy the slower the lerk flies with gorge... (+ a few seconds after you dropped the gorge)<!--QuoteEnd--></div><!--QuoteEEnd-->
I like this. It makes the lurk lift only last just long enough to travel, say, half the map, or place a hydra or two on high. It makes exploiting the lift to achieve invulnerability considerably more difficult.
Still, I think the lurk should go a bit slower, and that flying should be more cumbersome (as has been mentioned previously). Not only is this more balanced, but it is also more realistic.
Also, I think that Gorges should be the only lifeforms that can be lifted. That said, the image of three lurks struggling to hold an Onos in the air is an amusing one.
1) Increase a bit air friction, this should decrease the maximal speed of the lerk.
2) Increase the mass (by adding the mass of the gorge to the mass of the lerk), this should increase the gravitational force and the inertia of the lerk (you take more time to reach maximal speed).
<b>c) We could drain some energy per second for carrying</b><!--QuoteEnd--></div><!--QuoteEEnd-->
Yeah Koruyo, that sounds cool and reasonable. Also adding the weight from Gorge to the Lerk as Yuuki mentioned is just logical. Maybe the Lerk is then to heavy to take off :D but let's see. I just wait with implementing that stuff until we get some feedback from public servers for the current version. So we have something to compare if the adjustment helps the balance or not.
You can easily drop buildings while lifted by a Lerk. The Lerk just needs to flap carefully and you have something like hovering. No need for a extra functionality :)
Placing buildings on the walls and ceilings is very easy with the mod. No fixes or features needed.
<img src="http://zeikko.fi/ns2/2011-11-05_00019.jpg" border="0" class="linked-image" />
How about instead, as has been mentioned numerous times, gorges just spit hydra seeds. Far less gimicky. Can't be as easily abused as this. and is just far easier and straight forward.
Now, I do think this has easily a place on custom servers, but I'm very wary of seeing this in vanilla.
Good luck having a commander place infestation on a tall vertical wall like in tram starting position.
Why would you need a commander to place infestation on the wall? We're talking about building with gorges here which works fine with the mod.
I could but at least not now ^^ I'm not sure if it's worth the work. But I'll think about the idea, I just saw your thread in "Ideas and Suggestions".
Something important about the mod:
I'm happy to see it's installed on HBZ1 where I played yesterday but it seems like most players have ofc no idea about the mod or how it works. I'm wondering how the information could be made available to the players. Maybe showing a tool tip about it every 5 minutes for alien players? At least I could show a tool tip if the Lerk is facing the Gorge but I guess that's not happening very often :/ What do you think?
Also thanks to ALC for installing it on your server :)
Skulk can wait on the wall, lerks can fly. That would give another ability for lerks and its not the best idea imo
<a href="http://www.existence-unknown.com/_gallery3/comic/page48.html" target="_blank"><img src="http://www.existence-unknown.com/marbl_media/comics/2011/11-28.jpg" border="0" class="linked-image" /></a></div>
Hahaha! That's great :D Awesome artwork! I had to laugh very loud when I saw that :D