Raised This Month: $ Target: $400
 0% 

[CS:S/CS:GO] SM_Hosties (v2.2.0, 2015-08-15)


Post New Thread Reply   
 
Thread Tools Display Modes
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 07-02-2010 , 01:03   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #171

Still, even mid-round with 3 CTs and 3 Ts (when I tested the other night) the LR would not end if somebody suicides.
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 07-02-2010 , 07:46   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #172

Quote:
Originally Posted by bobbobagan View Post
Still, even mid-round with 3 CTs and 3 Ts (when I tested the other night) the LR would not end if somebody suicides.
That's strange, I never seen anything like that myself since v1.03 or something.
Would you mind me having a look when it happens - on the server?
Please contact me in private...
dataviruset is offline
silviucs19
New Member
Join Date: Jul 2010
Old 07-02-2010 , 09:07   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #173

Please I need Help Dataviruset or anybody else.I have problem.I have a server and i put datbase's plugin on my Ba_Jail Server. Says like this Ex
[Sm_Hosties] 'xGx|Nomad" atacked "simsim" with ....
I have tralate it into my language but i have a problem i want to change the name [Sm_Hosties] into [Gondor-Jails]how can i do this?.It doesn't exist in the folder Translate.Somebody Please Help Me.
silviucs19 is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 07-02-2010 , 09:13   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #174

To change the [SM_Hosties] tag you have to download the source, change the tag and compile the plugin yourself, although I don't recommend that for a basic usage, and it would be keen if the players of the server notices that the server runs SM_Hosties...
dataviruset is offline
silviucs19
New Member
Join Date: Jul 2010
Old 07-02-2010 , 14:34   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #175

But how to download the source where's the source and how to change the tag at evenscripts i can change the tag but here I don't now HowCan you help me.i must chenge the sm_hosties of each line to my tag ???....can you compile it for me please i don;t now how
silviucs19 is offline
Ynot
Member
Join Date: Jun 2010
Old 07-02-2010 , 16:30   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #176

Quote:
Originally Posted by silviucs19 View Post
But how to download the source where's the source and how to change the tag at evenscripts i can change the tag but here I don't now HowCan you help me.i must chenge the sm_hosties of each line to my tag ???....can you compile it for me please i don;t now how
Download the source code. "Get Source" on first post. Then open it with WordPad, NotePad, NotePad++, or w/e application you use to edit. Then look on line 11. Should be this line..
Code:
#define MESS			 "\x03[SM_Hosties] \x01%t"
Change it to whatever you like inside the quotations marks.
Ynot is offline
silviucs19
New Member
Join Date: Jul 2010
Old 07-03-2010 , 07:17   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #177

It didn't works the tag has not change [Sm_Hosties] at the same
silviucs19 is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 07-03-2010 , 07:46   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #178

OK I played around with this a bit more... I have two extra lines added to the player_death event:
PHP Code:
// check if the death had to do with a LR
    
if ( (LRinprogress == true) && (target != CFloser) && (attacker == LRprogressplayer1 || attacker == LRprogressplayer2 || attacker == || attacker == target) && (target == LRprogressplayer1 || target == LRprogressplayer2) )
    {
        
        
// de-beacon and set vars
        
if (GetConVarInt(sm_hosties_lr_beacon) == 1)
            
KillLRBeacons();
            
        
LogEventToGame("jb_wonlr"attacker);
        
LogEventToGame("jb_lostlr"target);

... 
I started an LR with a CT and died by environmental death. The beacons turned off, although later on when the CT was killed it came up with the message "[SM_Hosties] Non LR-player senvey killed LR-player happyocc - LR aborted."

I don't see how my two lines would be affecting this (I haven't tried removing them and seeing if the problem still happens though, but I very much doubt it).

Also other people are reporting things like this:
Quote:
well i was in lr, and as im capped i was disconnected for buffer overflow.
then i rejoined and since then everytime i die, i lose five points for "losing an lr"
How exactly do LR's work? It seems that they are being considered to be in an LR if they were previously in one, and disconnect then rejoin... I thought that as soon as you died/disconnected you were no longer considered to be in an LR.

You can join yourself and see... just start an LR then die via environmental death.
203.14.173.51:27015
__________________

Last edited by bobbobagan; 07-03-2010 at 09:09. Reason: Whoops, forgot the IP xD
bobbobagan is offline
Send a message via Skype™ to bobbobagan
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 07-03-2010 , 10:11   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #179

Your issue is very strange, I have never seen it before.

PHP Code:
public Event_PlayerDisconnect(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
ev_client GetEventInt(event"userid");
    new 
client GetClientOfUserId(ev_client);
    if ( (
LRinprogress == true) && ((client == LRprogressplayer1) || (client == LRprogressplayer2)) )
    {
        
// set vars
        
LRinprogress false;

        
S4Slastshot 0;

        
GTp1dropped false;
        
GTp2dropped false;
        
CFdone false;
        
CFloser 0;

        if (
GetConVarInt(sm_hosties_lr_beacon) == 1)
            
KillLRBeacons();

        if ( (
LRtype == 2) && (lr_gt_mode != 0) )
        {
            
SetEntityRenderColor(GTdeagle1255255255);
            
SetEntityRenderMode(GTdeagle1RENDER_NORMAL);
            
SetEntityRenderColor(GTdeagle2255255255);
            
SetEntityRenderMode(GTdeagle2RENDER_NORMAL);
        }
        else if ( (
LRtype == 4) && (!HPendrunning) )
        {
            if (
HPtimer != INVALID_HANDLE)
            {
                
CloseHandle(HPtimer);
                
HPtimer INVALID_HANDLE;
            }
            if (
HPdeagleBeacon != INVALID_HANDLE)
            {
                
CloseHandle(HPdeagleBeacon);
                
HPdeagleBeacon INVALID_HANDLE;
            }

            
SetEntPropFloat( ((client == LRprogressplayer1) ? LRprogressplayer2 LRprogressplayer1), Prop_Data"m_flLaggedMovementValue"1.0);

            
SetEntityRenderColor(HPdeagle255255255);
            
SetEntityRenderMode(HPdeagleRENDER_NORMAL);
        }
        else if (
LRtype == 5)
        {
            
SetEntityGravity( ((client == LRprogressplayer1) ? LRprogressplayer2 LRprogressplayer1), 1.0);
            
SetEntData( ((client == LRprogressplayer1) ? LRprogressplayer2 LRprogressplayer1), FindSendPropOffs("CBasePlayer""m_iHealth"), 100);
            
GivePlayerItem( ((client == LRprogressplayer1) ? LRprogressplayer2 LRprogressplayer1), "weapon_knife");

            if (
DBtimer != INVALID_HANDLE)
            {
                
CloseHandle(DBtimer);
                
DBtimer INVALID_HANDLE;
            }
        }

        
PrintToChatAll(MESS"LR Player Disconnect"client);
    }

As you can see, the LRinprogress variable gets set to false which indicates that no LR is in progress. Also, the KillLRBeacons() function runs which kills the LR beacons...
dataviruset is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 07-05-2010 , 07:41   Re: [CSS] SM_Hosties (v1.07)
Reply With Quote #180

Hi there, just wanna let you know I found this in my errors log

Code:
L 07/03/2010 - 20:22:07: [SM] Native "SetEntData" reported: Entity 525 (525) is invalid
L 07/03/2010 - 20:22:07: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 07/03/2010 - 20:22:07: [SM]   [0]  Line 411, sm_hosties.sp::OnWeaponDrop()
L 07/03/2010 - 20:22:22: [SM] Native "SetEntData" reported: Entity 525 (525) is invalid
L 07/03/2010 - 20:22:22: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 07/03/2010 - 20:22:22: [SM]   [0]  Line 411, sm_hosties.sp::OnWeaponDrop()
L 07/03/2010 - 20:22:26: [SM] Native "GetEntityNetClass" reported: Invalid entity (525 - 525)
L 07/03/2010 - 20:22:26: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 07/03/2010 - 20:22:26: [SM]   [0]  Line 465, K:\Dokumentbackup\Oskar\Source SDK-stuff\SourceMod-scripting\include\entity.inc::GetEntSendPropOffs()
L 07/03/2010 - 20:22:26: [SM]   [1]  Line 401, K:\Dokumentbackup\Oskar\Source SDK-stuff\SourceMod-scripting\include\entity_prop_stocks.inc::SetEntityRenderColor()
L 07/03/2010 - 20:22:26: [SM]   [2]  Line 879, sm_hosties.sp::Event_PlayerDeath()
L 07/03/2010 - 20:56:05: Error log file session closed.
L 07/03/2010 - 23:04:27: SourceMod error session started
L 07/03/2010 - 23:04:27: Info (map "jb_vipinthemix_beta78") (file "errors_20100703.log")
L 07/03/2010 - 23:04:27: [SM] Native "CloseHandle" reported: Handle 0 is invalid (error 4)
L 07/03/2010 - 23:04:27: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 07/03/2010 - 23:04:27: [SM]   [0]  Line 689, sm_hosties.sp::Event_RoundEnd()
Groger 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 00:52.


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