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
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 08-28-2011 , 11:22   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1041

Quote:
Originally Posted by Annihilator View Post
PHP Code:
    else if (attacker && target && (GetClientTeam(attacker) == CS_TEAM_CT) && (GetClientTeam(target) == CS_TEAM_T) \
        && !
g_bIsARebel[attacker] && gShadow_Announce_CT_FreeHit
lastrequest.sp line 938

Shouldnt it be !g_bIsARebel[target] ?
It shouldn't be [attacker] but there's a debate on whether that should be [target] or if it should just be omitted altogether.
__________________
databomb is offline
Annihilator
Senior Member
Join Date: Nov 2006
Location: Lithuania
Old 08-28-2011 , 12:06   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1042

Could you explain how is a player made rebel in you new system?
Annihilator is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 08-28-2011 , 12:22   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1043

Quote:
Originally Posted by Annihilator View Post
Could you explain how is a player made rebel in you new system?
Pretty similar to before, if a T attacks a CT and there are no LR games active, he's marked as a rebel. Also, if someone interferes with an active LR game then they're marked as a rebel. There might be some issues right now with detecting rebels when LRs are active; I'll take a look at it.

If you have suggestions for new hosties API like a forward when someone is marked as a rebel, let us know.
__________________

Last edited by databomb; 08-28-2011 at 12:28.
databomb is offline
Annihilator
Senior Member
Join Date: Nov 2006
Location: Lithuania
Old 08-28-2011 , 13:15   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1044

I've tried to remake a few edits I had in the old plugin, but they don't seem to be working (a part of it is that I didn't actually find the part where you turn ppl to rebels )

PHP Code:
public Action:Event_OnBulletImpact(Handle:event,const String:name[],bool:dontBroadcast)
{
    new 
attacker GetClientOfUserId(GetEventInt(event"attacker"));
    if (!
g_bIsARebel[attacker] && (GetClientTeam(attacker) == CS_TEAM_T))
    {
        
g_bIsARebel[attacker] = true;
        if (
gShadow_ColorRebels)
            
SetEntityRenderColor(attackergShadow_ColorRebels_RedgShadow_ColorRebels_GreengShadow_ColorRebels_Blue255);

        if (
gShadow_Announce_Rebel && IsClientInGame(attacker))
            {
                if (
gShadow_SendGlobalMsgs)
                {
                    
PrintToChatAll(CHAT_BANNER"New Rebel"attacker);
                }
                else
                {
                    
PrintToChat(attackerCHAT_BANNER"New Rebel"attacker);
                }
            }
    }

So what should I do to make it work?
Annihilator is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 08-28-2011 , 13:31   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1045

All of that is in LastRequest_PlayerHurt. Also, what you've posted should work fine other than we should be checking IsClientInGame for SetEntityRenderColor
__________________
databomb is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 08-28-2011 , 14:02   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1046

Hi,

Can someone tell me what this does:
Code:
// Enable or disable configurable payloads for each time on player spawn
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_startweapons_on "1"
Thanks
nomy is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 08-28-2011 , 14:07   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1047

Quote:
Originally Posted by nomy View Post
Hi,

Can someone tell me what this does:
Code:
// Enable or disable configurable payloads for each time on player spawn
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_startweapons_on "1"
Thanks
This tells hosties whether to give the CTs and Ts the weapon payloads you've defined, by default Ts get knives and CTs get knives, a pistol, and m4a1.
__________________
databomb is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 08-28-2011 , 14:51   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1048

Thanks for answering

And big thanks for the lovely update
nomy is offline
away000
Veteran Member
Join Date: Sep 2010
Old 08-28-2011 , 15:43   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1049

Everthing is fine, but "!lr" or "!lastrequest" is not working... some help?
away000 is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 08-28-2011 , 15:45   Re: [CSS] SM_Hosties (v2.0.0)
Reply With Quote #1050

Quote:
Originally Posted by away000 View Post
Everthing is fine, but "!lr" or "!lastrequest" is not working... some help?
I guess you also have some old translations left. Remove every hosties.phrases.txt except for English and Swedish as they're the only translations that are up-to-date right now. If you still don't get it to work, check your logs/ folder for errors_ logs.
dataviruset 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 12:35.


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