1 (edited by Magnet 2009-03-05 21:55:31)

Topic: [MOD] Teeworlds Shield mod

Hi,

Following this discussion: http://www.teeworlds.com/forum/viewtopic.php?id=3502

I have programmed this mod with some help from Rajh.

The concept:

Enjoy your regular gametype (CTF, DM, TDM and the instagib variants) with another gameplay element: an energy shield.

The gametype is named with an X appended as in eXtended .. for instance, CTF with shield is CTFX, iDM with shield is iDMX.

To enable the shield, use sv_shield_enable 1

The shield works this way:
  - to switch to it, use the bind "+shield; say /shield" (the say command is there to disambiguate real player switch from a bug in the client which insists for wanted weapons even if they already had it earlier...).
  - if you have the shield, it is active.
  - when shield is active, its "energy" decreases .. it is represented by the ammos decreasing fast. (change with sv_shield_duration; default 3)
  - when the shield isnt active, it regenerates itself. Standard rate: 1 energy point(ammo) every 0.4seconds (change with sv_shield_regentime; default 4).
  - if you fire with the shield active, you get your previous weapon and automatically fire with it instead... Also, if you are being hooked at the time you fire, and the hook(s) go through the shield, the hooks are cut off and the hooking enemies are sent back a bit. This "feature" (special defensive power) might change depending on feedback, it was very hard to use but I made some changes to shield reload so it might be too powerful now! I had no one to test this final mod sad.
  - if you let the shield deplete itself of all the energy (ammo = 0), you can't get it back until it is completely full again (4 seconds)
  - the shield doesn't behave like weapons... You can switch to it at anytime (not waiting for a reload)... and switch out of it at anytime. However you cannot use it to shoot faster, all weapon reloads must complete. If you don't have shield energy left, and you switch back, you might still have to wait for your previous reload to finish (especially if you fired with a long reload weapon before, eg the laser rifle). I am still not sure which will be the final behavior (wait for reloads or can switch at anytime). The thing is, even if you can use the shield to cover almost all the time when you're not actually shooting, it costs shield energy and you might need it more later. Also, it is really tricky to do and keep yourself protected with the shield, and totally useless if your opponent isn't using the pistol or the laser smile.


The shield blocks PISTOL BULLETS (not shotgun) and REFLECTS lasershots (to the direction you're aiming at)... but you have to AIM with your shield to cover the angle the laser/bullet hits you!

Screenshot:
http://www.mithrandir.net/magnet/tw/screenshot0630.png
As you can see, I'm using the katana blast to act as my energy field, it's pretty cool imho and doesn't require heavy client modding.

The shield is hard to use, it is meant to be hard to use. It is not perfectly balanced yet, but it's a good start. This is a proof of concept first and a fun mod then.


HOW TO PLAY IT?

It requires a change to the protocol unfortunately (to define the new weapon). It will be ported to 0.6.0 and will not need a modded client then, but for now a modded client is required to play (as well as the server obviously). I can build it only for Linux, so if someone can build it for Windows and Mac I would be grateful.

Patchfile (patch against 0.5 svn branch, but it patches against 0.5.1 fine with patch -p0 < teeshields-0.1.patch in the root folder)
Teeworlds client linux32 binary (be careful, not compatible with other servers, so don't erase your teeworlds copy, call this one teeshields and put it in your teeworlds directory or a copy of it)
Teeworlds client windows binary built by spl0k (be careful, not compatible with other servers, so don't erase your teeworlds copy, call this one teeshields and put it in your teeworlds directory or a copy of it)
Teeworlds server linux32 binary (I guess you know what you're doing here)
Teeworlds server win32 binary built by spl0k (I guess you know what you're doing here)
Sample configuration

I'm starting a public server for testers. Because the "compatible version" works on client version and not protocol revision, to find servers, search for the X gametype ! And uncheck "compatible version". I didn't look into that so maybe someone else who actually cares can fix it.

This instagib part is based on the Instagib mod by spl0k aka Al of the HuH server (because it's the cleanest instagib mod out there imho).

Thanks to Rajh for helping me getting started, Ubuntu for all the help, o10 for feedback, matricks for making a 0.6.0 that won't need client modding... and everyone who made this idea possible.

Thanks spl0k for the windows builds.

And thanks to the most awesome Teeworlds clan, Qi, for giving me a motivation to do this mod ;p. http://qi.m0g.net/ !

If someone can make builds, please do!

Hope you guys have fun.

2 (edited by khubajsn 2009-03-05 09:09:04)

Re: [MOD] Teeworlds Shield mod

I will try it smile
EDIT: I have tried to connect your server and it writes something about wrong version - cant connect

Goodbye all. Account inactive since March 2011.

3

Re: [MOD] Teeworlds Shield mod

Nice work magnet !

4

Re: [MOD] Teeworlds Shield mod

Just to point out that Al` is not Sd`.

~{MS}~ Tho
~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US : http://www.monkeystyle.tk || Check out our IRC channel : #monkeystyle on QuakeNet || Also check out the TeeWiki : http://teewiki.info

5

Re: [MOD] Teeworlds Shield mod

Great work big_smile
*thumps up*

Is a nice factor to change situations in the 'normal' gameplay. wink

~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US: http://monkeystyle.xooit.com/
Check out our IRC channel: #monkeystyle on QuakeNet || Also check out the TeeWiki: http://teewiki.info

6

Re: [MOD] Teeworlds Shield mod

looks nice but pls do so the shield work on shotgun and if a greanade tuch it it exploe

(sorry for my bad english)

smile.,??????•$•??????.,:)        smile.,???????•$•???????.,:)
?????      Ps3     ?????        ?????   Ps3_main   ?????
smile.,??????•$•??????.,:)        smile.,???????•$•???????.,:)

7

Re: [MOD] Teeworlds Shield mod

Magnet, I you aim at your ennemy while his laser is reflected, I guess the reflected laser will kill him? That would be kinda funny wink

~{MS}~ Eve ~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US: http://www.monkeystyle.tk
Check out our IRC channel: #monkeystyle on QuakeNet || Also check out the TeeWiki: http://teewiki.info

8

Re: [MOD] Teeworlds Shield mod

That's exactly what happens. big_smile

~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US: http://www.monkeystyle.tk
Check out our IRC channel: #monkeystyle on QuakeNet || Also check out the TeeWiki: http://teewiki.info

9

Re: [MOD] Teeworlds Shield mod

Win32 binaries (client and server)
They're crosscompiled from linux with mingw so there's no icon and are a bit heavier, but it should work.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

10 (edited by pAn!K - Hiryuu 2009-03-05 18:23:52)

Re: [MOD] Teeworlds Shield mod

Where is the server ? I want to test it big_smile !
Great job Magnet and the others!

edit: ok sorry I found it xD

11

Re: [MOD] Teeworlds Shield mod

Wow great job. Thats makes really fun.

12 (edited by pAn!K - Hiryuu 2009-03-05 20:07:45)

Re: [MOD] Teeworlds Shield mod

I tested it and I have some comments :
First it's really fun to use, the timing is good (maybe the loading time when the shield is empty is a little too much ?) and I love the fact that you can make "a shoot out of shield".

Nevertheless, I play on your Vanilla server and I think it's not as much effective on it because it has no effect on grenades which is the most important weapon. I think it should prevent at least half of the damage from the grenade because it's already really hard to use and the hook is always effective.

Anyway, good job again, i like it smile , even if it don't work really well on Vanilla for the moment

edit: You said that it don't work with shotgun but we test it and it worked, why ? And I didn't test the "hook cut", it seems cool but maybe too powerful if the player is good at that. Shotgun and Grenade should be prevent at 50% by shield but I know after a long discussion with Ubuntu that all players are not agree with that at all.

13

Re: [MOD] Teeworlds Shield mod

for windows?

here Solek lol
in game The Teelight smile

14

Re: [MOD] Teeworlds Shield mod

Solek wrote:

for windows?

check the thread >.<


Good thing you could return to your last weapon just using mouse1 smile

check out these maps: infiltrate - choco - dustycloud

15 (edited by Magnet 2009-03-05 21:57:07)

Re: [MOD] Teeworlds Shield mod

pAn!K - Hiryuu wrote:

edit: You said that it don't work with shotgun but we test it and it worked, why ? And I didn't test the "hook cut", it seems cool but maybe too powerful if the player is good at that. Shotgun and Grenade should be prevent at 50% by shield but I know after a long discussion with Ubuntu that all players are not agree with that at all.

Yes the current version stops all bullets, shotgun or not. I don't know if/how I'll change it, it depends on general balance. I will never make the shield protect from grenades because they can be avoided with movement. The shield is not meant to protect from all.

I will need to make a real test with many players at some point... but first I need some volunteers.

16 (edited by Franchan 2009-03-05 22:53:50)

Re: [MOD] Teeworlds Shield mod

wait... is this a 24h mod? because i cant find it right now.. sad Canada

found it.... wrong version.... is it b/c no mac compatability?

17

Re: [MOD] Teeworlds Shield mod

That rox, tried it yesterday wink

~{MS}~ Eve ~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US: http://www.monkeystyle.tk
Check out our IRC channel: #monkeystyle on QuakeNet || Also check out the TeeWiki: http://teewiki.info

18

Re: [MOD] Teeworlds Shield mod

Franchan: you have to download the modded client from here to play the mod smile

~{MonkeyStyle}~ - Instagib Teeworlds Clan
VISIT US: http://www.monkeystyle.tk
Check out our IRC channel: #monkeystyle on QuakeNet || Also check out the TeeWiki: http://teewiki.info

19

Re: [MOD] Teeworlds Shield mod

oh. so no mac version yet. too bad...

20

Re: [MOD] Teeworlds Shield mod

Looks cool. @.@

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

21 (edited by Lanta 2009-03-08 21:47:04)

Re: [MOD] Teeworlds Shield mod

very nice ^^
I'm testing it... XD

Support Staff - ESL.eu Teeworlds Admin

22

Re: [MOD] Teeworlds Shield mod

is this working on the newest TW version?

23

Re: [MOD] Teeworlds Shield mod

Closing. Stop digging up topics.

Not Luck, Just Magic.