AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   VSH / Freak Fortress (https://forums.alliedmods.net/forumdisplay.php?f=154)
-   -   VSH VSH Improvements/Additions (https://forums.alliedmods.net/showthread.php?t=207609)

-.-Owned Myself-.- 02-04-2013 16:18

VSH Improvements/Additions
 
2 Attachment(s)
Hello all!

I've been pestered to release this plugin publicly since it's pretty handy and neat for Versus Saxton Hale. It originally started out with the intention of being a combination of various improvements, but as time has passed VSH has improved beyond what I could think of for it.

So here I bring to you the same functionality as !ff2dmg provides for Freak Fortress 2.

In the future I plan to add client cookies and such to store things but while I'm battling some issues of my own, this will not be my priority.

Commands:

!haledmg on/off [Red] [Green] [Blue] [Alpha]

Red, Green, Blue and Alpha parameters are all optional. By default, the text displayed is white (255). You can skip the optional arguments using an underscore like this:

!haledmg on/off 255 _ 255 255

Above, the green argument is skipped and left as is and the red, blue and alpha are modified.

I hope you find this useful! Knowing my laziness, this has probably already been posted before but I wouldn't know where to begin finding it!

Mike_BoG 02-04-2013 16:39

Re: VSH Improvements/Additions
 
This is awesome! Been using it ever since I got it, players call it handy.

PMAvers 04-02-2013 00:56

Re: VSH Improvements/Additions
 
Used it tonight, it's definitely neat, although I did notice that it's still active on maps that aren't active VSH maps.

krispx 08-01-2013 04:03

Re: VSH Improvements/Additions
 
Hi, jus report errors logs:

Code:

L 08/01/2013 - 10:00:57: [SM] Native "VSH_GetClientDamage" reported: Plugin owning this native is currently paused.
L 08/01/2013 - 10:00:57: [SM] Displaying call stack trace for plugin "vsh_improvements.smx":
L 08/01/2013 - 10:00:57: [SM]  [0]  Line 122, vsh_improvements.sp::Timer_Millisecond()


pcquad 08-01-2013 08:30

Re: VSH Improvements/Additions
 
Quote:

Originally Posted by krispx (Post 2003363)
Hi, jus report errors logs:

Code:

L 08/01/2013 - 10:00:57: [SM] Native "VSH_GetClientDamage" reported: Plugin owning this native is currently paused.
L 08/01/2013 - 10:00:57: [SM] Displaying call stack trace for plugin "vsh_improvements.smx":
L 08/01/2013 - 10:00:57: [SM]  [0]  Line 122, vsh_improvements.sp::Timer_Millisecond()


I approve this

Powerlord 08-01-2013 09:56

Re: VSH Improvements/Additions
 
Quote:

Originally Posted by krispx (Post 2003363)
Hi, jus report errors logs:

Code:

L 08/01/2013 - 10:00:57: [SM] Native "VSH_GetClientDamage" reported: Plugin owning this native is currently paused.
L 08/01/2013 - 10:00:57: [SM] Displaying call stack trace for plugin "vsh_improvements.smx":
L 08/01/2013 - 10:00:57: [SM]  [0]  Line 122, vsh_improvements.sp::Timer_Millisecond()


This error means that VSH is paused. It might be a good idea to find out why that is.

infi 09-29-2013 04:49

Re: VSH Improvements/Additions
 
Can you make it so this plugin will have triggers on those who came first, second and third, or if the hale wins? I use the Store plugin and I want to reward credits to good players.

friagram 09-29-2013 08:33

Re: VSH Improvements/Additions
 
Quote:

Originally Posted by infi (Post 2042510)
Can you make it so this plugin will have triggers on those who came first, second and third, or if the hale wins? I use the Store plugin and I want to reward credits to good players.

Why dont you just sell queue points.
Hell, just set it up so you can buy them directly via paypal.
Why not.

Edit: i'm dumb and thought you wanted a forward.
Go to calc que points and youll see it there :3
You could just throw in the store native to add points to those top players each round.

Advokat 07-20-2014 23:05

Re: VSH Improvements/Additions
 
2 Attachment(s)
Here's an updated version that disables !haledmg while the scoreboard is open (to avoid it flickering like mad).

MasterOfTheXP 07-20-2014 23:23

Re: VSH Improvements/Additions
 
Why only check IN_SCORE at the end, after generating the strings to use? (Also, GetMaxClients and using z as a variable rather than i. Yay.) Even still, it's generating the same strings for each client with the tracker on...but oh well.
PHP Code:

for (new 1<= MaxClientsz++)
{
    if (
IsValidClient(z) && damageTracker[z] > 0)
    {
        if (
GetClientButtons(z) & IN_SCORE) continue;
        
// getting hale's userid each time for some reason and etc.
    
}


By the way, since releasing FF2 Damage Tracker long ago (ohgod) I've updated Halloween Damage Tracker with a far better ranking method. Consider using it rather than this current method (although the current method is still far better/neater than the one I originally did...*shudder*)

Besides, this one only goes up to 3 (even though the plugin seems to be accepting up to 8)

Advokat 07-21-2014 00:07

Re: VSH Improvements/Additions
 
Quote:

Originally Posted by MasterOfTheXP (Post 2171132)
Why only check IN_SCORE at the end, after generating the strings to use? (Also, GetMaxClients and using z as a variable rather than i. Yay.) Even still, it's generating the same strings for each client with the tracker on...but oh well.

I'm pretty new/hopeless when it comes to this stuff but I thought it best to share a fix even if it wasn't done very cleanly. I'll implement your more efficient method certainly, much appreciated.

I think changing up your Halloween Damage Tracker to work for Hale might be a bit beyond me, sorry.

MasterOfTheXP 07-21-2014 00:40

Re: VSH Improvements/Additions
 
Sorry; that last part was meant to be directed more towards -.-Owned Myself-.-.


All times are GMT -4. The time now is 14:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.