Raised This Month: $51 Target: $400
 12% 

VSH Request: Slay Hale


Post New Thread Reply   
 
Thread Tools Display Modes
jasonfrog
Senior Member
Join Date: Mar 2008
Old 06-24-2013 , 05:41   Re: Request: Slay Hale
Reply With Quote #11

Quote:
Originally Posted by ozgaming View Post
didn't seem to work. No errors to report unfortunately.
I've added log messages so that we can see what is going on. Please let me know what you see in the SM log.

EDIT:Now removed.

Last edited by jasonfrog; 06-25-2013 at 05:17.
jasonfrog is offline
ozgaming
SourceMod Donor
Join Date: Aug 2011
Old 06-25-2013 , 04:03   Re: Request: Slay Hale
Reply With Quote #12

When I stood still for 15 seconds. No slay however
Quote:
L 06/25/2013 - 18:02:24: [afkvshbossslayer_logmessages.smx] VSH Round Started.
L 06/25/2013 - 18:02:24: [afkvshbossslayer_logmessages.smx] Boss Assumed AFK.
When Hale was not AFK (Was moving)
Quote:
L 06/25/2013 - 18:02:24: [afkvshbossslayer_logmessages.smx] Boss AFK Timer Started
L 06/25/2013 - 18:02:24: [afkvshbossslayer_logmessages.smx] Boss Moved. Boss Not AFK.

Last edited by ozgaming; 06-25-2013 at 04:04.
ozgaming is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 06-25-2013 , 05:22   Re: Request: Slay Hale
Reply With Quote #13

Thanks.

Ok, it was just a silly mistake by me where, for some reason, I had assumed that VSH_GetSaxtonHaleUserId() was returning the real player index.

The attached version should work.

Edit: See 3 posts down for working version.

Last edited by jasonfrog; 06-25-2013 at 10:19. Reason: Link to working version
jasonfrog is offline
ozgaming
SourceMod Donor
Join Date: Aug 2011
Old 06-25-2013 , 05:49   Re: Request: Slay Hale
Reply With Quote #14

sorry Jason, still no slaying. I dont mind if it slays all honestly.

Last edited by ozgaming; 06-25-2013 at 05:50.
ozgaming is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-25-2013 , 08:27   Re: Request: Slay Hale
Reply With Quote #15

Question: Why would you need all these checks before you slay?
Code:
if (IsPlayerAlive(g_hale_userid) && IsClientConnected(g_hale_userid) && GetClientTeam(g_hale_userid) == VSH_GetSaxtonHaleTeam())
I would think that the player would have to be connected and alive in order to be Hale

And also, if you manage to get the VSH version working, would you mind also making a FF2 one?
__________________
~Wliu
Wliu is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 06-25-2013 , 09:51   Re: Request: Slay Hale
Reply With Quote #16

Ok, finally gotten around to testing what I was doing. The problem was with how I was checking for button presses.

Attached is a working version, which now also supports bots.
(one cvar, sm_hale_afk_time which defaults to 15.0 seconds.)
Attached Files
File Type: sp Get Plugin or Get Source (afkvshbossslayer.sp - 95 views - 1.8 KB)
File Type: smx afkvshbossslayer.smx (4.4 KB, 96 views)

Last edited by jasonfrog; 06-25-2013 at 10:24. Reason: typo
jasonfrog is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 06-25-2013 , 10:23   Re: Request: Slay Hale
Reply With Quote #17

Quote:
Originally Posted by Wliu View Post
Question: Why would you need all these checks before you slay?
Code:
if (IsPlayerAlive(g_hale_userid) && IsClientConnected(g_hale_userid) && GetClientTeam(g_hale_userid) == VSH_GetSaxtonHaleTeam())
I would think that the player would have to be connected and alive in order to be Hale

And also, if you manage to get the VSH version working, would you mind also making a FF2 one?
That's there to avoid errors in the case that the player has left the server since the AFK timer started, or that the player killed themselves/changed teams.

Here is a FF2 version that will also slay AFK companions.

There is one cvar, sm_boss_afk_time, which defaults to 15.0 seconds.

Updated! Please download again...
Attached Files
File Type: smx afkff2bossslayer.smx (4.5 KB, 91 views)
File Type: sp Get Plugin or Get Source (afkff2bossslayer.sp - 86 views - 2.4 KB)

Last edited by jasonfrog; 06-25-2013 at 15:56.
jasonfrog is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-25-2013 , 11:39   Re: Request: Slay Hale
Reply With Quote #18

Quote:
Originally Posted by jasonfrog View Post
That's there to avoid errors in the case that the player has left the server since the AFK timer started, or that the player killed themselves/changed teams.

Here is a FF2 version that will also slay AFK companions.

There is one cvar, sm_boss_afk_time, which defaults to 15.0 seconds.
Ah, thanks.
__________________
~Wliu
Wliu is offline
Cerise
Senior Member
Join Date: Jun 2009
Location: debug_backtrace()
Old 06-25-2013 , 11:48   Re: Request: Slay Hale
Reply With Quote #19

Quote:
Originally Posted by jasonfrog View Post
That's there to avoid errors in the case that the player has left the server since the AFK timer started, or that the player killed themselves/changed teams.

Here is a FF2 version that will also slay AFK companions.

There is one cvar, sm_boss_afk_time, which defaults to 15.0 seconds.
Finally back.

Well, 1st vesion wasnt working, the last one works like a charm!
TO YOU
__________________
Cerise is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 06-25-2013 , 15:57   Re: Request: Slay Hale
Reply With Quote #20

There is was an issue with the FF2 version.
The plugin 3 posts up from here has been updated. Please use that for FF2.
jasonfrog is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:46.


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