Raised This Month: $214 Target: $400
 53% 

[CS:GO] Anti-RoundDraw Plugin (Paid?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darthelmo1
Junior Member
Join Date: Nov 2016
Old 07-15-2017 , 21:14   [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #1

Hey everyone,

As it currently stands in CS, if the timer runs out on a defuse map CTs win and if the timer runs out on a non-defuse map a round draw is triggered and the round count stays the same.

Could someone create (or at least give me an idea of where to start on) a plugin that would make it so that whatever team has more collective HP at the end (or right near the end) of the round wins?

Example:

4 players still alive.

CT #1: 100hp
CT #2: 23hp

T #1: 60hp
T #2: 98hp

Ts win the round when the timer runs out, or just before.


Got some extra $$$ in my paypal right now so if someone's able to make a nice plugin i might be willing to throw a couple bucks at you. Not a promise though unfortunately.


Thanks very much,
Elmo
darthelmo1 is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-16-2017 , 17:41   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #2

Hi, I wrote it with HP comparing which you said ;)

Not tested if worked we can add more features as you want
Attached Files
File Type: sp Get Plugin or Get Source (Anti-RoundDraw.sp - 232 views - 1.3 KB)
WatchDogs is offline
darthelmo1
Junior Member
Join Date: Nov 2016
Old 07-17-2017 , 21:33   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #3

Quote:
Originally Posted by WatchDogs View Post
Hi, I wrote it with HP comparing which you said ;)

Not tested if worked we can add more features as you want

Didn't work for me, unfortunately. I'll see if I can figure it out.
darthelmo1 is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-18-2017 , 02:22   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #4

I guessed it won't work.

Try this and tell the result this should work:
Attached Files
File Type: sp Get Plugin or Get Source (Anti-RoundDraw.sp - 195 views - 1.7 KB)
WatchDogs is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 07-18-2017 , 04:42   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #5

PHP Code:

public Action CS_OnTerminateRound(float &delayCSRoundEndReason &reason)
{
    if(
reason == CSRoundEnd_Draw)
        return 
Plugin_Stop;
    
    return 
Plugin_Continue;

__________________
zipcore is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-18-2017 , 05:14   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #6

Quote:
Originally Posted by zipcore View Post
PHP Code:

public Action CS_OnTerminateRound(float &delayCSRoundEndReason &reason)
{
    if(
reason == CSRoundEnd_Draw)
        return 
Plugin_Stop;
    
    return 
Plugin_Continue;

You're blocking the round end !!!

It's impossible because it's a game event, So anyway where is the HP comparing and winner set ?!
WatchDogs is offline
blacklagoon
Senior Member
Join Date: Jun 2012
Old 07-18-2017 , 05:16   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #7

I think he just readed the title of the topic and got confused
blacklagoon is offline
darthelmo1
Junior Member
Join Date: Nov 2016
Old 07-18-2017 , 18:52   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #8

Quote:
Originally Posted by WatchDogs View Post
I guessed it won't work.

Try this and tell the result this should work:
Didn't work at first but I managed to fix it and get it to work! Thank you!
darthelmo1 is offline
WatchDogs
Senior Member
Join Date: Oct 2015
Location: Iran
Old 07-19-2017 , 05:39   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #9

How ?! It should work !!

Use this debug version and give me the logs:
Attached Files
File Type: sp Get Plugin or Get Source (Anti-RoundDraw.sp - 240 views - 2.1 KB)

Last edited by WatchDogs; 07-19-2017 at 05:43.
WatchDogs is offline
darthelmo1
Junior Member
Join Date: Nov 2016
Old 09-07-2017 , 19:24   Re: [CS:GO] Anti-RoundDraw Plugin (Paid?)
Reply With Quote #10

Sorry for abandoning this thread. Your timers are a bit messed up and you didn't actually include a section to add to the team's score. As of now this plugin is still a WIP -- basic functionality works but doesn't do what we need it to (yet). I'll reply with some help once we fix it.
darthelmo1 is offline
Reply


Thread Tools
Display Modes

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 13:06.


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