Raised This Month: $32 Target: $400
 8% 

[CSGO] Warmup Round


Post New Thread Reply   
 
Thread Tools Display Modes
red4911
Senior Member
Join Date: Sep 2010
Location: Russia
Old 04-01-2015 , 13:50   Re: [CSGO] Warmup Round
Reply With Quote #11

Quote:
L 04/01/2015 - 20:296: SourceMod error session started
L 04/01/2015 - 20:296: Info (map "de_dust2") (file "errors_20150401.log")
L 04/01/2015 - 20:296: [SM] Native "GetEntDataEnt2" reported: Entity 16 (16) is invalid
L 04/01/2015 - 20:296: [SM] Displaying call stack trace for plugin "warmup.smx":
L 04/01/2015 - 20:296: [SM] [0] Line 245, C:\Users\Администратор\Desktop\sourcemod\scri pting\warmup.sp::WeaponHandler()
L 04/01/2015 - 20:296: [SM] [1] Line 293, C:\Users\Администратор\Desktop\sourcemod\scri pting\warmup.sp:elayWeapon()
red4911 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-01-2015 , 14:10   Re: [CSGO] Warmup Round
Reply With Quote #12

That's because the clientId is being passed in a couple of timers. One is 0.1 seconds (EventItemPickup) and another is 1.1 seconds (EventWeaponFire). In that time, the client could disconnect, causing this error to happen.
__________________
View my Plugins | Donate
TnTSCS is offline
tuanphat
New Member
Join Date: Jun 2015
Old 06-19-2015 , 14:06   Re: [CSGO] Warmup Round
Reply With Quote #13

I already set random weapon, but always only one kind of gun in any new map change
tuanphat is offline
Junkie XL
Junior Member
Join Date: Jun 2014
Old 07-27-2015 , 02:45   Re: [CSGO] Warmup Round
Reply With Quote #14

Can someone update this plugin for zeus support?
Junkie XL is offline
thecyupy
Member
Join Date: Aug 2013
Old 09-25-2015 , 12:02   Re: [CSGO] Warmup Round
Reply With Quote #15

Logs Error

09/25/2015 - 00:061: [SM] Native "GetEntDataEnt2" reported: Entity 15 (15) is invalid
L 09/25/2015 - 00:061: [SM] Displaying call stack trace for plugin "warmup.smx":
L 09/25/2015 - 00:061: [SM] [0] Line 231, /home/groups/alliedmodders/forums/files/1/7/6/9/6/7/125648.attach::WeaponHandler()
L 09/25/2015 - 00:061: [SM] [1] Line 279, /home/groups/alliedmodders/forums/files/1/7/6/9/6/7/125648.attach:elayWeapon()
L 09/25/2015 - 00:061: [SM] Native "GetEntDataEnt2" reported: Entity 15 (15) is invalid



18:02:25 meta list
18:02:25 Listing 4 plugins:
[01] SourceMod (1.7.3-dev+5251) by AlliedModders LLC
[02] CS Tools (1.7.3-dev+5251) by AlliedModders LLC
[03] SDK Tools (1.7.3-dev+5251) by AlliedModders LLC
[04] SDK Hooks (1.7.3-dev+5251) by AlliedModders LLC

18:02:41 plugin_print
18:02:42 Loaded plugins:
---------------------
0:<TAB>"Metamod:Source 1.10.5"
---------------------
thecyupy is offline
Gdk
Member
Join Date: Oct 2014
Old 12-02-2015 , 17:14   Re: [CSGO] Warmup Round
Reply With Quote #16

Hi, I realize this plugin was uploaded 2 years ago, and the author might not be active on the forums anymore, so I modified the plugin myself to fix two problems I encountered while using it.

Issue 1: A new random weapon is not used when the map changes

Issue 2: If you have mp_warmup_pausetimer 1, this plugin ignores that.

I also changed the warmup countdown message to fit my needs.

To anyone that wants to use it I attached it.

Last edited by Gdk; 12-04-2015 at 15:57.
Gdk is offline
Gdk
Member
Join Date: Oct 2014
Old 12-06-2015 , 17:02   Re: [CSGO] Warmup Round
Reply With Quote #17

Quote:
Originally Posted by TnTSCS View Post
That's because the clientId is being passed in a couple of timers. One is 0.1 seconds (EventItemPickup) and another is 1.1 seconds (EventWeaponFire). In that time, the client could disconnect, causing this error to happen.
Would the following fix this?
Code:
public Action:DelayWeapon(Handle:timer, any:client)
{
  if(IsClientInGame(client))
  {
    WeaponHandler(client);
  }
}
Gdk is offline
sphinx
Senior Member
Join Date: Jun 2005
Location: E.U. / localhost
Old 01-13-2016 , 07:35   Re: [CSGO] Warmup Round
Reply With Quote #18

bump
sphinx is offline
Gdk
Member
Join Date: Oct 2014
Old 01-14-2016 , 05:44   Re: [CSGO] Warmup Round
Reply With Quote #19

Fixed bug causing crashes, added infinite taser support, lowered timers for giving weapons, when you are out of ammo refills it here:

https://github.com/RavageCS/CSGO-Warmup-Round

I use https://forums.alliedmods.net/showthread.php?t=274362 to manage my warmup timer. I might condense these two plugins into one later.
Gdk is offline
BoosterGold
Member
Join Date: Nov 2016
Old 05-29-2017 , 01:48   Re: [CSGO] Warmup Round
Reply With Quote #20

Quote:
Originally Posted by Gdk View Post
Fixed bug causing crashes, added infinite taser support, lowered timers for giving weapons, when you are out of ammo refills it here:

https://github.com/RavageCS/CSGO-Warmup-Round

I use https://forums.alliedmods.net/showthread.php?t=274362 to manage my warmup timer. I might condense these two plugins into one later.
Hey GDK,

The Operation Hydra update added a nifty cvar for infinite taser usage: mp_taser_recharge_time.

To better use the new taser system, I made the following changes to the code:

PHP Code:
public EventWeaponFire(Handle:event,const String:name[],bool:dontBroadcast)
...
yaddayadda...
            if (
StrEqual(g_weapon"hegrenade"false) || StrEqual(g_weapon"taser"false) || StrEqual(g_weapon"decoy"false)) 
became

PHP Code:
public EventWeaponFire(Handle:event,const String:name[],bool:dontBroadcast)
...
yaddayadda...
            if (
StrEqual(g_weapon"hegrenade"false) || StrEqual(g_weapon"decoy"false)) 
and

PHP Code:
public EventWeaponReload and public EventWeaponFireOnEmpty 
became

PHP Code:
public EventWeaponReload(Handle:event,const String:name[],bool:dontBroadcast)
{
    if (
g_enabled && IsWarmup)
    {
        new 
client GetClientOfUserId(GetEventInt(event"userid"));
        if (!
StrEqual(g_weapon"taser"false))
        {
            if(
IsClientInGame(client))
            {
                
RemoveWeapon(client);
                
GiveWeapon(client);
            }
        }
    }
}

public 
EventWeaponFireOnEmpty(Handle:event,const String:name[],bool:dontBroadcast)
{
    if (
g_enabled && IsWarmup)
    {
        new 
client GetClientOfUserId(GetEventInt(event"userid"));
        if (!
StrEqual(g_weapon"taser"false))
        {
            if(
IsClientInGame(client))
            {
                
RemoveWeapon(client);
                
GiveWeapon(client);
            }
          }
    }

The result uses the visible recharge meter on the back of the taser and bypasses the need for the DelayWeapon timer. mp_taser_recharge_time must be set to something other than default though. I use 1.5.
Attached Files
File Type: sp Get Plugin or Get Source (warmup.sp - 600 views - 10.9 KB)

Last edited by BoosterGold; 05-29-2017 at 01:51.
BoosterGold 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 17:28.


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