1

Topic: Auto Switch On Empty

Hey guys. Friend showed me this game the other day, pretty fun.

I saw that mod/hacking was (if at the very least) not discouraged so I figured I'd throw in some functionality I felt was missing. Not quite sure what to do from here. Should I check out the source via SVN and make a patch that way?

Not sure what the best approach would be, but I'd love to share the hack/fix/mod with you all.

Basically all it does is switch to the next best weapon if you run out of ammo (and try to fire)

Took me a couple hours to figure out the structure of the code, but I think I did a good job sticking with the coding standards and whatnot.

So! Yea... its definitely 5:00AM here, and I should get some sleep. Please let me know what the best solution would be, or tell me to bugger off if you're not interested hehe.

Cheers!

2

Re: Auto Switch On Empty

Already discussed in my thread.
How someone said: Fucking macro.. But i think would be nice the Low ammo warning in the broadcast area or the extra shoot sound when low ammo

Goodbye all. Account inactive since March 2011.

3

Re: Auto Switch On Empty

khubajsn wrote:

Already discussed in my thread.
How someone said: Fucking macro.. But i think would be nice the Low ammo warning in the broadcast area or the extra shoot sound when low ammo

Well, a link would have been helpful, but if you're referring to this one: http://www.teeworlds.com/forum/viewtopic.php?id=2624 then I'm not sure what you would like me to do about it smile

So you had a similar idea, I actually implemented it rather than requesting it. I've got the svn patch, but I'm not exactly expecting it to get accepted. I posted it to the mailing list however.

I'll post here if it gets approved.

4

Re: Auto Switch On Empty

Seems like a long awaited feature and definitely an improvement to the game. The community will certainly make good use of this if you post it. Keep up the good work!

5

Re: Auto Switch On Empty

IMHO you should upload a patch for everyone to compile, and also a precompiled binary for those who don't know what to do. Such an improvement is great and maybe it will make its way to the code of the next release. 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

6

Re: Auto Switch On Empty

This has already been discussed and would have been in the game since long if it was meant to. Part of the game is making sure you have ammo and change weapon accordingly. I doubt this will get official, and as always using modded clients is regarded as cheat in my book, and I'm admin at the ESL teeworlds section so for once what I think actually matters.. (;

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

7

Re: Auto Switch On Empty

Chi11y wrote:

and as always using modded clients is regarded as cheat in my book

This depends on the changes that the modification implements. If it's game breaking and gives one player a clear advantage over others then it's clearly a cheat. When all it does is add a minor graphical improvement and remembers you of something that you would also remember by just looking at an official function (ammo bar) then it's perfectly legit. The fact that it automatically switches to a loaded weapon is a grey zone because it does mimic what any player would do and does not give a significant advantage, but at the same time is an automated function. It's questionable if it would improve your gameplay enough to make a difference though.

It's like the World of Warcraft policy on using addons, as long as it's based on information you already get from the game itself there's no problem. (otherwise you would already be on the dark side if you would graphically modify the ammo bar with the game.png).

As soon as you modify the game to give you information you don't get from the downloadable game then it becomes another matter and you are indeed really having a serious advantage (also known as cheat).

8

Re: Auto Switch On Empty

The problem is that someone needs to decide what gives u a significant advantage. Therefore I agree with chi11y. Let me explain: you said that adding a minor graphical improvement that reminds you of something is ok. Now if I was to extend my client with the functionality of counting the respawn time for weapons, armor, flags, katana - simply All pickups, so that the client would remind me if theres any armor / health to pick up near me, this would give me a great advantage. You already have this information from the game, since you know that if you pick up a weapon, it will reappear half a minute later, but its hard for a player to watch the timer, keeping in mind the order and time he picked up stuff, and play at the same time.

On a side note, I play with the armor, health and ammo meter sprites lowered by 2 pixels, so they are smaller. I dont consider myself a cheater, and I would be happy if I could legitimately change such behaviour.

We will meet again when the flowers spread their glorious scent of victory and the birds sing us the melody of justice...

9

Re: Auto Switch On Empty

In ESL, I judge it like this: Replacing graphics is fully okay, both tilesets, game.png's and skins. It's something many players do, and only gives an advantage on maps that make use of things to hide with, which I consider bad map design for this game. Any modification to the client binary is, however small the change might be, cheating, and would gain you penalty points or ban in my tournaments. Ofcourse, if the change is something that's needed for the game to run on your computer or similar, or just a from-source compiled vanilla version, it is okay, but any modifications to the actual code is considered as cheat.

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

10 (edited by Azon 2009-02-21 21:26:00)

Re: Auto Switch On Empty

Well certainly tournaments can only be played on an equal base with 100% similar games and no modification at all. After all it's a comparison of skill, not of modding capabilities. If you want to attempt to become nr. 1 you can only do so with the rules set by the organization, and a clean base game client is definitely an important aspect of this.

For development and greater enjoyment I think that a degree of modification should certainly be allowed, because next to the unique gameplay of Teeworlds the free implementation of custom content has always and will always be a very important aspect of the game. Within certain limits it must always be possible to add your own element to the game, and give the community the chance to give their opinion about your suggestions. This is an important aspect of the Teeworlds future, especially considering there's more interest in the custom content created by and for the community then there's in the original game.