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

L4D Friendly Fire damage remover


Post New Thread Reply   
 
Thread Tools Display Modes
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 01-09-2009 , 02:53   Re: L4D Friendly Fire damage remover
Reply With Quote #21

What happens if on expert difficulty i shoot to surv and i impac him on first shoot ?


Quote:
Originally Posted by r5053 View Post
yep that's true, matchmaking is good, but you should be able to select the server with a serverbrowser in the matchmaking lobby.
You can connect to concrete server form matchmaking system(lobby) simple as a lobby leader find empty server, copy ip, and in console type: sv_cheats 1 and ms_force_dedicate_server "ip", now press start
__________________
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Old 01-09-2009 , 11:43   Re: L4D Friendly Fire damage remover
Reply With Quote #22

Quote:
Originally Posted by KawMAN View Post
What happens if on expert difficulty i shoot to surv and i impac him on first shoot ?
Without the fix i anounced, he will die ;)
but with the fix i will release soon (maybe in the next 48h) he will be Still alive (btw: Portal ftw )
__________________
Visit HLPortal.de (this is not my Page)


r5053 is offline
Send a message via ICQ to r5053 Send a message via Skype™ to r5053
PharaohsPaw
Senior Member
Join Date: Dec 2008
Old 01-11-2009 , 06:11   Re: L4D Friendly Fire damage remover
Reply With Quote #23

Logs are filling up with these:

L 01/11/2009 - 00:00:21: SourceMod error session started
L 01/11/2009 - 00:00:21: Info (map "l4d_vs_hospital04_interior") (file "errors_20090111.log")
L 01/11/2009 - 00:00:21: [SM] Native "IsClientInGame" reported: Client index 0 is invalid
L 01/11/2009 - 00:00:21: [SM] Displaying call stack trace for plugin "nota.smx":
L 01/11/2009 - 00:00:21: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/34102.attach::Event_player_hurt()


If it matters, I have it enabled everywhere, not just in spawn. Looks like it's complaining when the victim is a bot.

PharaohsPaw
PharaohsPaw is offline
santaclaus
Senior Member
Join Date: Dec 2008
Old 01-11-2009 , 06:57   Re: L4D Friendly Fire damage remover
Reply With Quote #24

Quote:
Originally Posted by PharaohsPaw View Post
Logs are filling up with these:

L 01/11/2009 - 00:00:21: SourceMod error session started
L 01/11/2009 - 00:00:21: Info (map "l4d_vs_hospital04_interior") (file "errors_20090111.log")
L 01/11/2009 - 00:00:21: [SM] Native "IsClientInGame" reported: Client index 0 is invalid
L 01/11/2009 - 00:00:21: [SM] Displaying call stack trace for plugin "nota.smx":
L 01/11/2009 - 00:00:21: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/34102.attach::Event_player_hurt()


If it matters, I have it enabled everywhere, not just in spawn. Looks like it's complaining when the victim is a bot.

PharaohsPaw
Same for me .... really a lot of these ...Many times per minute.

gl.
__________________

santaclaus is offline
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Old 01-11-2009 , 13:08   Re: L4D Friendly Fire damage remover
Reply With Quote #25

time to fix it
__________________
Visit HLPortal.de (this is not my Page)


r5053 is offline
Send a message via ICQ to r5053 Send a message via Skype™ to r5053
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Old 01-11-2009 , 13:51   Re: L4D Friendly Fire damage remover
Reply With Quote #26

So here's a beta update:
it's untested, please verify if it's working

if it works, it fixes the errors in the log and that it's possible to kill someone if he's already hurt.
Attached Files
File Type: sp Get Plugin or Get Source (nota2.sp - 723 views - 2.4 KB)
__________________
Visit HLPortal.de (this is not my Page)



Last edited by r5053; 01-11-2009 at 13:55.
r5053 is offline
Send a message via ICQ to r5053 Send a message via Skype™ to r5053
Big Myke
Senior Member
Join Date: Jan 2009
Location: Grain Belt, USA
Old 01-31-2009 , 10:28   Re: L4D Friendly Fire damage remover
Reply With Quote #27

Your beta patch allows to shoot bots and real survivors while in spawn. Your official patch works but with those error logs. Could it be possible to add a cvar to disable the "blocking inactive" message?

Last edited by Big Myke; 01-31-2009 at 11:02.
Big Myke is offline
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Old 01-31-2009 , 16:14   Re: L4D Friendly Fire damage remover
Reply With Quote #28

Quote:
Originally Posted by Big Myke View Post
Your beta patch allows to shoot bots and real survivors while in spawn. Your official patch works but with those error logs. Could it be possible to add a cvar to disable the "blocking inactive" message?
with demage or without?
__________________
Visit HLPortal.de (this is not my Page)


r5053 is offline
Send a message via ICQ to r5053 Send a message via Skype™ to r5053
Big Myke
Senior Member
Join Date: Jan 2009
Location: Grain Belt, USA
Old 01-31-2009 , 16:25   Re: L4D Friendly Fire damage remover
Reply With Quote #29

Quote:
Originally Posted by r5053 View Post
with demage or without?

What do you mean? I'm requesting a cvar disable the "blocking inactive/Blocking active" messages that show up in chat. I wish to use your pluggin with as much subtlety as possible since it's to help control the griefers. Your official patch that posted in your first post works. Your beta patch does not work for me.
Big Myke is offline
soho
New Member
Join Date: Jan 2009
Old 01-31-2009 , 17:22   Re: L4D Friendly Fire damage remover
Reply With Quote #30

This should take care of the error spam but I have not tested it alot though, and this is the first time I have had a look at this API.

Code:
public Action:Event_player_hurt(Handle:event, const String:name[], bool:dontBroadcast)
{
    if (removingdemageactive)
    {
        new victimId = GetEventInt(event, "userid")
        new attackerId = GetEventInt(event, "attacker")
        
        if ((victimId != 0) && (attackerId != 0))
        {
            new victim = GetClientOfUserId(victimId)
            new attacker = GetClientOfUserId(attackerId)
            if (IsClientInGame(victim)){
                if (IsClientInGame(attacker)){
                    if (GetClientTeam(victim) == GetClientTeam(attacker))
                    {
                        SetEntityHealth(victim,(GetEventInt(event,"dmg_health")+ GetEventInt(event,"health")))
                    }
                }
            }
        }
    }
    return Plugin_Continue    
}
soho 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 22:03.


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