KillSwap - Switches your position with who you kill

Expand and mod your server.
Post Reply
User avatar
Zehra
Private First Class
Private First Class
Posts: 921
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

KillSwap - Switches your position with who you kill

Post by Zehra »

A custom flag which switches the killer position with whoever they kill.

License is CC0-1.0

Download available here: github.com/Zehra/KillSwap

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: KillSwap - Switches your position with who you kill

Post by optic delusion »

Could this steal flags instead of swap position? Would be a thief flag that kills. I'd probably get rid of the thief flag if I had that.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: KillSwap - Switches your position with who you kill

Post by blast »

I imagine that would be difficult, since there's no guarantee that a flag will be available to give at the time of death. I don't recall if the API can give a player a flag that is currently falling or (de)spawning, and randomized flags can lead to a specific type being unavailable at times.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Zehra
Private First Class
Private First Class
Posts: 921
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

Re: KillSwap - Switches your position with who you kill

Post by Zehra »

@Optic Delusion
Yes, it is possible. Blast is right with there being some difficulties with this. I believe the simplest alternative is to kill a player with the bz_killPlayer() function whenever a player steals a flag, but this in short would in essence remove "default/normal" thief [flag] from operation. (The only difference is that players without flags would be "safe" from death.)

--

@Blast
Thankfully you mentioned the possible difficulties, as this reminds me of the issues which were seen with granting/switching flags in Progressive Flag mode.

--

It feels like we can nearly do something at the cutting edge of bz tech and at the same time it's a house of cards or keep things in the basic reliable state of the art and have gotchas. Everything else for this usually winds up being somewhere along this line most of the time, in my opinion.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
Post Reply