Author Topic: Awards  (Read 17010 times)

0 Members and 1 Guest are viewing this topic.

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Awards
« on: July 15, 2010, 06:08:43 am »
Awards

Script Info:
Script Name:  Awards
Script Version:  1.1
Script Release:  2
Script Description:  Displays some awards at end of round.
Original Author:  zyxstand
Core Version:  2.6.5


Description:
This neat little script I whipped up in a short time displays some end-of-round awards for players.
It's supposed to make soldat a bit more fun, like when everybody spent an extra 2 minutes at the end of 007 GoldenEye to look at everyone's awards.


Updates:
FOR A MORE COMPLETE CHANGELOG AND FUTURE PLANS, PLEASE REFER TO SCRIPT!
Changelog:
    v1.0 -> v1.1
        fixed some small bugs
        added some new awards
        modified how some nominations will be awarded
ToDo:
    Implement statistical features to give award only for very outstanding performance
    Possibly implement statistical information gathering.
    Show one award per player - show 10 awards max (both chosen by significances/difficulty)
Questions:
    Looking for more award ideas and better award names!
    How can I trigger showing awards when game ends?
        currently it checks if (timeleft = 0) or (scorelimit reached).
        how can it check if vote map or /map ended the round?


Commands:
Admin Commands:
    "/showawards 0" disables showing awards at end of round (stats will still be collected)
    "/showawards 1" enables showing awards at end of round
    "/showawards" simply indicates whether showing awards is enabled
Player Commands:
    - none -


Awards-list:
NOTE:  I cannot test all awards on my own.  Please let me know if you feel like some nominations are not awarded correctly!
Positive awards
    Flagrunner (most caps - CTF/INF only)
    Deadliest (Most kills) *1
    The Professional(highest k/d) *1
    Mr. Aggressive (engaged the most in short-distance-combat) *2
    Streak Master (most kills in one life)
    Survivor (longest time without dying)
Neutral awards
    Chatty Cat (most chat) *2
    Vulture (most kills with victim having had < 30% health
    Demolition Expert (most kills using explosives: m79, law, grenade, cluster)
    Close Combat (most close-ranged kills)
    Chuck Norris (most kills using hands)
Negative awards
    Spawnkill Award (most kills with victim having been alive < 3 sec)
    Campmaster (longest cumulitive time not moving (far) - excludes AFK)
    Kamkikaze (most suicides - excludes EndOfRound suicides in survival mode)
    Spray Award:  Most off-screen kills (min. distance for sniper extended)


Hosting Details:
Specifications:
    Compatible with all game modes
    Stats won't be displayed when map changes due to vote or /map command
Limitations:
    Bots might not be counted for some awards and may cause glitches!
Requirements:
    Server may not stay at 0 seconds remaining (ie: due to "could not find next map")



Please give feedback and suggestions for more awards!

Thank you :)
« Last Edit: July 18, 2010, 03:37:23 pm by zyxstand »
Can't think of anything original to put here...

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Awards
« Reply #1 on: July 15, 2010, 07:08:58 am »
Nice! I will install it right away on my ctf servers!
« Last Edit: July 15, 2010, 07:44:05 am by Bonecrusher »

Im chill like that

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Awards
« Reply #2 on: July 15, 2010, 09:01:28 am »
would be cool to make it work for survival too :)
Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Awards
« Reply #3 on: July 15, 2010, 09:12:07 am »
would be cool to make it work for survival too :)

What makes you think that it's not? I haven't tested it for scripting, but I believe it is compatible.

I'm really interested in ideas for more awards, or any improvements overall!
Can't think of anything original to put here...

DarkCrusade

  • Guest
Re: Awards
« Reply #4 on: July 15, 2010, 12:41:51 pm »
I don't like that you use DrawText() to draw the stats. WriteConsole() would be much better.

Offline Beoulve

  • Major(1)
  • Posts: 33
Re: Awards
« Reply #5 on: July 15, 2010, 09:23:48 pm »
I don't like that you use DrawText() to draw the stats. WriteConsole() would be much better.

Agreed. Nice script anyways though. :P

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Awards
« Reply #6 on: July 15, 2010, 11:47:36 pm »
Might I ask why?  is it because drawtext looks ugly and/or hard to read?  or you think that it shouldn't tkae over the screen?  i don't think i can put 10 lines of code in the console to be displayed all at once.  I was also thinking of making a /addbot and then /kick him immediately before displaying awards to make the scoreboard go away automatically. what do you think?
Can't think of anything original to put here...

DarkCrusade

  • Guest
Re: Awards
« Reply #7 on: July 16, 2010, 01:01:13 am »
10 lines of text are nothing compared to your whole screen being filled with text (that disappears, unlike WriteConsole()-text).

I don't think you need to add/kick bots.

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Awards
« Reply #8 on: July 16, 2010, 01:04:23 am »
kk i'll change it and see how it looks.
also, i was in a server the other day, and it was displaying custom messages, but with no [ * ] in front. how do you do that?

thanks
Can't think of anything original to put here...

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: Awards
« Reply #9 on: July 16, 2010, 02:14:55 am »
Nice script, but some nominations (such as Breadwinner, Deadliest, Professional) are kinda plain.
How about adding Kamikadze award for someone with most nade selfkills; or maybe Bomber for using explosives; Chuck Norris for most kills by hand (lol); Sniper for the longest kill distance... there are plenty of nominations to think about.

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Awards
« Reply #10 on: July 16, 2010, 04:19:56 am »
would be cool to make it work for survival too :)

What makes you think that it's not? I haven't tested it for scripting, but I believe it is compatible.


not sure if survivor award makes sense because you have rounds in survival mode

spawnkill award doesnt make sense because you cant spawnkill in survival

suicide award will be faulty because server kills you at the end of every round which is counted as a suicide

Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Awards
« Reply #11 on: July 16, 2010, 05:14:52 am »
Nice script, but some nominations (such as Breadwinner, Deadliest, Professional) are kinda plain.
How about adding Kamikadze award for someone with most nade selfkills; or maybe Bomber for using explosives; Chuck Norris for most kills by hand (lol); Sniper for the longest kill distance... there are plenty of nominations to think about.

yes that is exactly what i wanted to hear! i will implement soon.  in the meantime, i'd like to hear more ideas!


would be cool to make it work for survival too :)

What makes you think that it's not? I haven't tested it for scripting, but I believe it is compatible.


not sure if survivor award makes sense because you have rounds in survival mode

spawnkill award doesnt make sense because you cant spawnkill in survival

suicide award will be faulty because server kills you at the end of every round which is counted as a suicide



survivor makes sense - you can still be the longest-surviving player
i will change it so that in survival mode, survivor will be given to the person with longest cumulative time.
spawnkill is OK because... well if you can't spawnkill then no one gets the award :D
suicide, yeah that's gotta get fixed haha...
Can't think of anything original to put here...

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Awards
« Reply #12 on: July 16, 2010, 05:43:52 am »
maybe in survivor you could make it "most rounds survived"?
Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Awards
« Reply #13 on: July 16, 2010, 05:19:40 pm »
Nice script. Makes the match more fun even when it already ended. :P
A few suggestions:

I think the names of players should show up on the left, and awards on the right. Because you read from left to right, you need to put more important things (WHO's received the awards) on the left, and put additional details (Award name) to the right. That's just my opinion though. But I think it's the right one. :D

Comments on the awards themselves:

Quote
Breadwinner (most caps - CTF/INF only)
Breadwinner just sounds kinda.. "wtf?" Flagrunner would make more sense.

Quote
Mr. Aggressive (most hurt + hurting over time*)
I don't get it.. Does that mean YOU got hurt? Or you hurt others? If first - then that's not really aggression. :S If hurting others but not killing them - that's more like.. Mr.Noob McSpray :S

Quote
Streak Master (most kills in one life)
That also means that a player probably has highest K:D, which will conflict with The Professional (highest K:D) award. I think this award should be awarded to those who got the highest kill streak (if multiple people got the same streak - one who got it more times gets awarded).

Quote
Chatty Cat (most chat over time*)
Nice one. :P That should exclude taunts though..

Quote
Campmaster (longest cumulitive time not moving far)
Don't forget to exclude flaggers in situations when both teams have enemy flags.

Quote
Suicide Award (most suicides)
There will always be at least one such player. This award should only be given to those who really just fail. So this award could be given if the difference between "best" and "second-best" suicider is greater than 5.


Award ideas:
TrickShoooter (most ricochet kills)
Damage Master / Ambusher (at least 5 fast kills (took no longer than 3 seconds to kill an enemy)
(without scope in case of barrett))
Vulture (killed more injured players (60% hp or less) than enemies with at least 90% hp)

Some gun-specific awards:
Demolition Man (most kills with explosives and shockwaves)
Psycho (most kills with chainsaw and minigun)
Commando (most kills with a knife and soccom + disarms or kills with fists)
EagleEye (most scoped kills with barrett)
CloseCombat (if most kills are within a certain distance from the enemy)
« Last Edit: July 16, 2010, 05:38:49 pm by L[0ne]R »

DarkCrusade

  • Guest
Re: Awards
« Reply #14 on: July 16, 2010, 05:42:35 pm »
Nice ideas, but you cannot detect how many ricochets a kill had via scripting, nor can you detect scoped kills and disarming (well, barely).


Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Awards
« Reply #15 on: July 16, 2010, 06:01:56 pm »
Yeah, I had a feeling some of those things weren't quite possible. :S
For scoped kills you could count barret kills that are:
- made while crouching or prone, and
- distance is greater than one screen length (not sure how long that is in soldat meters).

Disarming - enemy got hit with a punch (weapon drop detection wouldn't even be necessary since hitting enemy with a fist already deserves award points)

Ricochets - even one ricochet should be enough, I don't think the exact number of them matters (sorry if I didn't make it clear. I meant how many enemies you killed with indirect shots, not how many times a bullet ricochetted). Can scripts at least detect a ricochet kill?
« Last Edit: July 16, 2010, 06:28:50 pm by L[0ne]R »

DarkCrusade

  • Guest
Re: Awards
« Reply #16 on: July 16, 2010, 06:20:06 pm »
1 meter ~ 14 units in Soldat.

Scoped kills will be very inaccurate. You can already get some key input, but only once a second. So it would most likely fail at the very beginning.

Disarming would work, because a punch deals an exact amount of damage (can vary between 3 values).

Scripts cannot detect ricochets. For a better understanding of what scripting can actually do take a look at this page: Link

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: Awards
« Reply #17 on: July 16, 2010, 06:24:07 pm »
Loner, I don't think so. Although, I liked the most of your ideas.

If may I suggest something, I'd say "change the Award-Display for the guys who won Awards only!"

I mean... Let's assume Kruger got the Mr. Agressive award, and Billy got the DeadLiest.
In that way, the message "Mr. Agressive - Kruger" shall be changed into "You were the Mr. Agressive!", and shall be displayed to Kruger ONLY. In the same way that Billy shall receive the "You were the DeadLiest!" message for himself.

For the rest of the folks who haven't got any Awards, message shall be "You haven't played well. No awards for you!", or w/e.

As the matter of DrawText Vs. WriteConsole, my points shall be followed. I named the Positive/Negative points of each use. Take the conclusion yourself:
1~ DrawText can be easily seen at the end of the map (obviously, because of it's size).
2~ WriteConsole can be hidden by some dudes spamming taunts (making the Awards only visible by pressing T, or w/e).
3~ DrawText hides messages, such as "Team Alpha is winner", "Kruger is winner", or w/e. WriteConsole doesn't.
4~ Not all people actually see WriteConsole messages at the end of the round.

In my honest opinion, I'd say "Wait for 2.7.0 and use WorldText! Hurrrrrrra!!"! :P

Very nice Script. Congratulations of my greatest sincerity. Rock on, fellow.
« Last Edit: July 16, 2010, 06:25:58 pm by squiddy »
www.soldatx.com.br - The brazilian Soldat community.

DarkCrusade

  • Guest
Re: Awards
« Reply #18 on: July 16, 2010, 06:41:08 pm »
I strongly recommend to stick with writing the text to every player, because it doesn't make much sense to write "You were the Mr. Agressive!" when you can see exactly that anyway. You wouldn't believe it, but most Soldat players know their own name!

WriteConsole is much handier than DrawText, and WorldText ... mate, that's ridiculous. Maybe teleport them all to the same place before writing the text then, too? Like one of my fellow friends said once: "RIDICULER!!"

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Awards
« Reply #19 on: July 16, 2010, 06:44:41 pm »
Well it should be WriteConsole since most of the nicks are too long to fit the screen. So make it WriteConsole or decrease DrawText size so long nicks are also visible. About the awards names these should be changed too.

Im chill like that