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

[CS:S] AutoRespawn v1.0.3


Post New Thread Reply   
 
Thread Tools Display Modes
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 09-04-2012 , 19:40   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #31

Quote:
Originally Posted by vodka00 View Post
There is 1 small issue. This plugin respawns people after they go to spectate. And they can pick up guns while in spectate and then if that gun has an effect parented to it (speed, gravity) then the spectator will affect the person he's spectating. Could you fix that?
http://forums.alliedmods.net/showpos...2&postcount=12

(Thank Zephyrus for that, and sLog too )
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 09-04-2012 at 19:41.
St00ne is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 02-02-2013 , 05:04   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #32

Hey, got this when I did unload_all

L 02/02/2013 - 10:02:08: [SM] Native "UnhookEvent" reported: Game event "player_class" has no active hook
L 02/02/2013 - 10:02:08: [SM] Displaying call stack trace for plugin "autorespawn.smx":
L 02/02/2013 - 10:02:08: [SM] [0] Line 37, C:\sm\addons\sourcemod\scripting\autorespawn. sp::OnPluginEnd()
__________________
cw main:

cw speedruns:
vodka00 is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 03-19-2013 , 00:15   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #33

I'm not sure but I think if you remove the unhook parts, which I think are useless in this case, the errors won't occur.

Also, I'm wondering why Zephyrus used "public Action:Event_Spawn" (same with Event_Death) while a simple "public Event_Spawn" would ve worked since it's a default "post" hook.

Anyway for both reasons I'm using the version below which works fine (I don't have any errors).

Edit: I also removed FCVAR_REPLICATED flag on version cvar since it creates errors in console.
-> https://forums.alliedmods.net/showpo...4&postcount=15
Attached Files
File Type: sp Get Plugin or Get Source (autorespawn_b3t2.sp - 664 views - 5.6 KB)
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 10-28-2014 at 21:26.
St00ne is offline
Lepraaah
Member
Join Date: May 2013
Location: Netherlands
Old 07-21-2013 , 01:12   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #34

A function that you can set the lenth of respawn option, like 30 seconds after spawning respawning will be disbaled. would be perfect for my mg course maps server on css..
Lepraaah is offline
Send a message via Skype™ to Lepraaah
Scribe of God
New Member
Join Date: May 2014
Old 05-05-2014 , 04:19   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #35

Sorry for the grave dig, how do I change the time from the 3 second delay to the 1 second delay?

Also, how do I change how long the spawn protection goes for?

I'm kinda noob at this, any help would be awesome!
Scribe of God is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 05-05-2014 , 19:28   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #36

Quote:
Originally Posted by Scribe of God View Post
Sorry for the grave dig, how do I change the time from the 3 second delay to the 1 second delay?

Also, how do I change how long the spawn protection goes for?

I'm kinda noob at this, any help would be awesome!
Hi,

To change the length, change the ar_respawn_delay in your file named sourcemod.cfg, located in cfg/sourcemod/

like ar_respawn_delay 3

Spawn protection is not included in this plugin. You need another one.

++
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 09-19-2014 at 17:33.
St00ne is offline
Pskov
New Member
Join Date: Jun 2014
Old 06-24-2014 , 00:47   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #37

Is there a way to remove dropped guns? Like for example there's the ar_dissolve_ragdolls ConVar what about removing the guns that player dropped when they died. Otherwise there's just guns absolutely everywhere and might start to lag the server after a while?
Pskov is offline
FurryPolimorf
New Member
Join Date: Apr 2012
Old 09-19-2014 , 15:47   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #38

86 line
if ( IsValidEntity(client) && IsClientInGame(client) && IsClientObserver(client) && !IsPlayerAlive(client) )

replace
if ( IsValidEntity(client) && IsClientInGame(client) && IsClientObserver(client) && !IsPlayerAlive(client) && GetClientTeam(client) == 2 || GetClientTeam(client) == 3 )

Last edited by FurryPolimorf; 09-19-2014 at 15:51.
FurryPolimorf is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 10-28-2014 , 21:27   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #39

Just to say I removed the FCVAR_REPLICATED flag in my version above as it can produce error in the client's console.
__________________

*** *** ***
-My plugins-
St00ne is offline
TaylorBankie
Junior Member
Join Date: Dec 2014
Old 12-22-2014 , 23:06   Re: [CS:S] AutoRespawn v1.0.3
Reply With Quote #40

Could you please make it so it only lasts for 30 seconds each round?
TaylorBankie 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 21:26.


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