Author Topic: Script-friendly default taunts  (Read 2145 times)

0 Members and 1 Guest are viewing this topic.

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Script-friendly default taunts
« on: February 15, 2016, 01:53:38 pm »
There's lots of custom modes and scripts out there that use custom commands for special player abilities. Needless to say, they often need to be executed quickly. To do this effectively, you have to add those commands to your taunts. And because each custom mode uses its own set of commands - you have to create multiple game profiles and multiple taunt sets.

This sucks. Let's make it better.

The creators of Last Stand mod did a smart thing and made it so most commands can also be executed with /smoke, /tabac, /takeoff and /victory, which are part of the default taunt set (Alt+1,2,3,4). Unfortunately this means that both commands are executed so you will randomly take off/put on your headgear, smoke and yell while using your abilities. Plus, only 4 taunts aren't always enough.

Let's expand on this idea a bit.

Default number taunts (Alt+<number>) should be set to something neutral, like /action1, /action2, /action3, /action4, /action5. This should encourage script makers to use these commands for special player abilities, since they're not used by anything else, have a neutral name that can be adapted to anything, and most importantly - in the default taunt set.

Existing number taunts will have to be moved or removed, which I personally am fine with since many of the default ones are useless and not even that fun. (When was the last time any of you used "Heavy Machine Gun ahead!"?). It doesn't even have to be the entire number set. Numbers 1-6 should be enough as this is reasonably easy for player to quickly press (as opposed to Alt+0 for example), and it should encourage script makers to keep the number of player commands smaller and not go full World of Warcraft mode.

Sorry for poor wording, I'm sleepy.


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Script-friendly default taunts
« Reply #1 on: February 15, 2016, 01:57:09 pm »
Simpler than coding key bindings at least. +1.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline TheOne

  • Soldier
  • **
  • Posts: 208
Re: Script-friendly default taunts
« Reply #2 on: February 15, 2016, 02:08:02 pm »
support

Offline ionwood

  • Major(1)
  • Posts: 6
Re: Script-friendly default taunts
« Reply #3 on: February 15, 2016, 02:12:52 pm »
support x2

Offline Monsteri

  • Artist
  • Flagrunner
  • ******
  • Posts: 773
  • Strange thing
Re: Script-friendly default taunts
« Reply #4 on: February 15, 2016, 02:15:56 pm »
yes

also screw you I use "Heavy Machine Gun ahead!" daily
Sorry if I'm insolent.

Offline Seth Gecko

  • Major(1)
  • Posts: 11
Re: Script-friendly default taunts
« Reply #5 on: February 15, 2016, 02:42:21 pm »
Yup, sounds useful! +1

Offline Savage

  • Soldier
  • **
  • Posts: 147
Re: Script-friendly default taunts
« Reply #6 on: February 15, 2016, 03:18:01 pm »
Thanks L[0ne]R! I was going to write that idea but I had Dodgeball tournament :P Also question to FalconPL, are You able to make it without "alt key"?(All numbers 1-0, on ZRPG as I good remember I had like 15 taunts...)

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline helloer

  • Soldat Developer
  • Major
  • ******
  • Posts: 51
Re: Script-friendly default taunts
« Reply #8 on: March 23, 2016, 07:33:50 pm »
I'm pretty sure that we will be able to ship "bind key to server command" function with 1.8 release, of course limited to certain keys.

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Re: Script-friendly default taunts
« Reply #9 on: March 23, 2016, 08:06:34 pm »
I'm pretty sure that we will be able to ship "bind key to server command" function with 1.8 release, of course limited to certain keys.
To be honest, I was also starting to lean towards a similar solution, but it has its own problems.

The problem with the change I suggested is that you're forced to dedicate several keys for /action# commands. Those keys are wasted when playing on non-scripted servers. It also forces script makers to tailor their scripts to the default taunt set with fixed number of commands. You can also only have one command per key, whereas a server-based solution could potentially allow for nested taunts.

On the flipside, if commands are bound by the server - that means the client has less control over key bindings. They might not be comfortable for the player to use, or player's keyboard might not support them well (like compact keyboards which don't have the numpad). I still like this solution better, but ideally there should be some way for the player to customize key bindings.


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

Offline helloer

  • Soldat Developer
  • Major
  • ******
  • Posts: 51
Re: Script-friendly default taunts
« Reply #10 on: March 23, 2016, 08:26:44 pm »
With the new key binding system i wrote client can bind actions(like jump) and taunts (also server commands) to every key on keyboard and mouse + modifier so you can bind for example taunt with CTRL+P or CTRL+SHIFT+ALT+MOUSE3 combination. Server will not be able to overwrite clients bindings.


Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Re: Script-friendly default taunts
« Reply #11 on: March 23, 2016, 09:15:37 pm »
But then how will conflicts between client and server bindings be handled? If server binding gets ignored - that can make a script potentially unusable for the player unless he changes his bindings (which can potentially conflict with a different server later). Neither player nor server know in advance which of their bindings may conflict, so perhaps there should be some sort of safenet that automatically assigns a conflicted key to the nearest alternative.


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

Offline helloer

  • Soldat Developer
  • Major
  • ******
  • Posts: 51
Re: Script-friendly default taunts
« Reply #12 on: March 24, 2016, 06:25:08 am »
What i meant is server will not be able to overwrite permanently player bindings, you will need to bind keys every time player connects to server.

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2078
  • need a life. looking for donors.
Re: Script-friendly default taunts
« Reply #13 on: March 24, 2016, 05:55:13 pm »
Whether this is permanent or not doesn't solve the problem of potential conflicts. Say, player has grenades on F key but server wants to bind "/mine" to it. Because client binding takes priority, server binding is disabled. So now if player wants to use /mine - he has to either change his controls (let's hope this won't require disconnecting in the future) or type /mine manually every time. So the problem is still there.

There needs to be
1. An automatic solution that resolves a conflict if possible, while keeping both server and client bindings functional. (by changing server binding to an alternative key).
2. A quick and easy way to bind the conflicting command manually, in case player does not like automatic solution. (by providing a GUI for server binding mapping).
3. A limited number of keys server can bind which are present on all keyboards, to reduce the chances of server bindings becoming unusable. (26 letter keys + 10 number keys).
« Last Edit: March 24, 2016, 06:00:16 pm by L[0ne]R »


L[one]R, INF veteran
maps - remakes: inf_Warehouse ; inf_Fortress ; inf_(Sun)Rise ; inf_Outpost ; inf_Abel ; inf_Moonshine

Offline Akinaro

  • Flagrunner
  • ****
  • Posts: 749
Re: Script-friendly default taunts
« Reply #14 on: March 25, 2016, 05:18:04 am »
Everyone wanted numpad tounts.... and I still cant find anyone who use those.
Most of time people actually have no idea that it was possible or they have no idea how set them on numpad(with line in tounts.txt?)

Just put those /action1 /action2 etc to numpad and its all done, you gonna have 10 buttons ready to use.


But still key/tount system should be remade(game where you use tounts all the time that doesnt have build in tount editor is just... pathetic after all those years). So IF you making new key system, just remember, that people are not idiots, and few additional keys in option is not big deal to use(Like Falcon though in other topic)

Offline helloer

  • Soldat Developer
  • Major
  • ******
  • Posts: 51
Re: Script-friendly default taunts
« Reply #15 on: March 25, 2016, 06:08:42 am »
Whether this is permanent or not doesn't solve the problem of potential conflicts. Say, player has grenades on F key but server wants to bind "/mine" to it. Because client binding takes priority, server binding is disabled. So now if player wants to use /mine - he has to either change his controls (let's hope this won't require disconnecting in the future) or type /mine manually every time. So the problem is still there.

There will be no conflicts, server will be able to bind key W with server command and player will jump and also send command. Clients will have option in soldat.ini called "DisableServerBinds" to permanently disable server key binding. There will be also information about bindings from server in game console (*SERVER* Binding "K" to "/command").

Using scripts you can implement system to change keys for specific player and also to remember his settings, it's up to scripters, not server/client to resolve problems like that.

Yes, we need to limit number of keys for server bindings and add limitation for commands per second to server because we don't want to see floodkicks everytime.

Everyone wanted numpad tounts.... and I still cant find anyone who use those.
Most of time people actually have no idea that it was possible or they have no idea how set them on numpad(with line in tounts.txt?)
Stop offtoping here please.
Just put those /action1 /action2 etc to numpad and its all done, you gonna have 10 buttons ready to use.
We are talking now about better alternative for server operator and players.
But still key/tount system should be remade(game where you use tounts all the time that doesnt have build in tount editor is just... pathetic after all those years). So IF you making new key system, just remember, that people are not idiots, and few additional keys in option is not big deal to use(Like Falcon though in other topic)
Offtopic, please create new thread about suggestions for new key system.
« Last Edit: March 25, 2016, 06:19:56 am by helloer »

Offline Akinaro

  • Flagrunner
  • ****
  • Posts: 749
Re: Script-friendly default taunts
« Reply #16 on: March 25, 2016, 06:12:43 am »
Where the F### hell you see offtopic here???

Topic is about ""Script-friendly default taunts""
All I wrote was simple modification of Loner idea, where he wanted to put those /action1 /action2 etc in alt+1,2,3 And I just wrote that it could be in numpad keys.

So please explain me where the hell you see offtopic?

Second part of my post: Fricking comment on YOUR POST, so AGAIN.... where you see offtopic here?

Offline helloer

  • Soldat Developer
  • Major
  • ******
  • Posts: 51
Re: Script-friendly default taunts
« Reply #17 on: March 25, 2016, 06:39:51 am »
I didn't say that the part about numpad is offtopic, please read more carefully. Topic was about ugly workaround and we will be shipping complete key server binding system so anyways your suggestion is worthless.

Rest of your post is not about the issue we are talking here so please create new thread if you have something to say.

Offline Akinaro

  • Flagrunner
  • ****
  • Posts: 749
Re: Script-friendly default taunts
« Reply #18 on: March 25, 2016, 07:01:31 am »
Sadly you looking for problem that doesnt exits there.

Part you choose as a "offtopic" was explanation behind my idea of this topic. Something for what some people cry all the time when you write idea.

Because if no one actually use numpads tounts, and people very often put custom tounts on 1,2,3 etc and all other keys, and lots of time they change them, why dont use numpads keys that are useless at this moment, and because players doesnt use that often tounts made for specific server(climb or zombie) there is no problem to put those actions there? and not as a something that player can change but as a default keys that cant be changed, and used only by server scripts.

Now other part.
Looking at any idea or suggestion WAY back to 2007 there is always answer from devs: its can be done right now, we cant etc etc. And tell me with your hand on hearth that you can make your idea in the next few version of soldat? Probably not.

And now tell me if it would be easier for now to stick numpads to those actions and use them on servers? It would not change anything in terms of your idea and can be implemented without that much work(from any other game perspective, because like always its gonna be blocking text: "but its soldat its need few years to make")

Of course its not perfect solution, but solution that can be used right now by script on servers and at the same time you can make better solution without too much hurry, and after you make it, numpad can be still used and be compatible with scripts.



And dont ask me about making another topic, because actually YOU writing about different idea that is not about main topic, even if its related to it.
You started to write about new key system that is associated with tounts but main topic is about putting action keys to tounts ....and guess what? Im actually writing about it, so explain me why I should create another topic ABOUT THE SAME TOPIC?

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1095
  • The world isn't nice. Why should I be...?
Re: Script-friendly default taunts
« Reply #19 on: March 25, 2016, 08:39:17 am »
Back to topic - not what topic is about...

Maybe make one extra button only. So, you push ALT+X to use client taunts (and those would never be overwritten in anyway) and [some not yet taken key like CTRL]+X to use server taunts. And those ones would be downloaded while connecting to the server (it's just few lines of text in the end).

Yea, server admins would have far more options than necessary but I am really against the idea to create some new key bindings in greater amount than one. Also, forcing people to stick to predefined taunts on keys: 1, 2, 3, 4... doesn't feel cool imo.

On the other hand, servers with some scripted gamemodes requiring special commands are somewhat important for Soldat but not sure if so much important there should be any changes in taunts nor key bindings done to support those.
« Last Edit: March 25, 2016, 08:43:08 am by machina »