Raised This Month: $ Target: $400
 0% 

[L4D] Friendly House


Post New Thread Reply   
 
Thread Tools Display Modes
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 08-28-2009 , 13:33   Re: [L4D] Friendly House
Reply With Quote #11

Just wondering is there an interest that I expand on the FF part? Like warn/kick/ban players if they hurt a teammate for a certain amount of damage within a small time period?

Otherwise I'm probably gonna add a few more things to this and be done with it.
Mr. Zero is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-29-2009 , 04:05   Re: [L4D] Friendly House
Reply With Quote #12

I definetely wont use kick/ban. Dont know what others will tell. It wouldnt be so bad to have it as an option.

What i really need - is some punishment for incorrect or abusive MOLOTOV usage, it does 5 dps to survivors with my preferences. And i really tired to kick molotov abusers. I'm not sure what is the damage type of molotov, but you can check it manually by printing it in event callback. Thanx for your work.
__________________
olj is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 10-03-2009 , 11:37   Re: [L4D] Friendly House
Reply With Quote #13

New update.

Code:
Version 0.92
+ Auto pick up of Medkits and 2nd pistol if available (only working in versus)
~ Changed l4d_friendlyhouse_* to l4d_fh_*
Mr. Zero is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 10-18-2009 , 08:47   Re: [L4D] Friendly House
Reply With Quote #14

this is only working for normal 08/15 versus. I run a 8vs8 server and 4 do not get a medikit, itīs just not in the saferoom anymore. So this plugin is not for servers which have > 4 survivors.
Skorpion1976 is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 10-19-2009 , 15:07   Re: [L4D] Friendly House
Reply With Quote #15

Quote:
Remember last used primary gun and restore it if available.
this is being investigated right?
LTR.2 is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 10-21-2009 , 12:49   Re: [L4D] Friendly House
Reply With Quote #16

Quote:
Originally Posted by Skorpion1976 View Post
this is only working for normal 08/15 versus. I run a 8vs8 server and 4 do not get a medikit, itīs just not in the saferoom anymore. So this plugin is not for servers which have > 4 survivors.
It depends. If there is no more then 4 kits in saferoom, no more then 4 kits will be given out.

PHP Code:
new entcountmaxcount GetConVarInt(FindConVar("survivor_limit"));
    while ((
ent FindEntityByClassnameNearby("weapon_first_aid_kit_spawn",surOrigin,AUTOPICKUP_AREA)) != -1)
    {
        if(
count == maxcount){break;}
        
RemoveEdict(ent);
        
count ++;
    }
    
    if(
count == 0){return true;}
    
    
GiveSurvivorItems("weapon_first_aid_kit",count); 
As you can see, it will keep finding medkits near the survivors until the count reaches survivor_limit cvar, and it will give out as many as it found.

Quote:
Originally Posted by LTR.2 View Post
this is being investigated right?
Working on it.

Last edited by Mr. Zero; 10-21-2009 at 12:51.
Mr. Zero is offline
Frus
Senior Member
Join Date: Aug 2009
Old 10-21-2009 , 13:46   Re: [L4D] Friendly House
Reply With Quote #17

I would suggest checking the 'm_itemCount' datamap on first aid kits, because some plugins like I believe superversus change that so that each 'spawn' actually hold multiple medkits.
Frus is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 10-25-2009 , 09:22   Re: [L4D] Friendly House
Reply With Quote #18

Quote:
Originally Posted by Mr. Zero View Post
It depends. If there is no more then 4 kits in saferoom, no more then 4 kits will be given out.

PHP Code:
new entcountmaxcount GetConVarInt(FindConVar("survivor_limit"));
    while ((
ent FindEntityByClassnameNearby("weapon_first_aid_kit_spawn",surOrigin,AUTOPICKUP_AREA)) != -1)
    {
        if(
count == maxcount){break;}
        
RemoveEdict(ent);
        
count ++;
    }
    
    if(
count == 0){return true;}
    
    
GiveSurvivorItems("weapon_first_aid_kit",count); 
As you can see, it will keep finding medkits near the survivors until the count reaches survivor_limit cvar, and it will give out as many as it found.



Working on it.
So this plugins finds exactly the original 4 medkits. nothing else.
judging from that code I could change "count" to "8" so I become independent. I will give that a try.
EDIT: not working. I was hoping to find a workaround with this: GiveSurvivorItems("weapon_first_aid_kit",8) but it doesnīt work.

Last edited by Skorpion1976; 10-25-2009 at 09:35.
Skorpion1976 is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 11-10-2009 , 16:54   Re: [L4D] Friendly House
Reply With Quote #19

i have a couple of suggestions:

-players don't control the safe house door at the end of the level, to prevent door-spam. when a player is close to the door the door automatcly opens, when the player goes away from the door, this is closed.

-door won't open until everyone has their supplies. that means primmary weapon too. or maybe make the door open after XX seconds so prevent people leaving when the others are still loading or preparing.
LTR.2 is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 11-11-2009 , 07:25   Re: [L4D] Friendly House
Reply With Quote #20

Quote:
Originally Posted by LTR.2 View Post
i have a couple of suggestions:

-players don't control the safe house door at the end of the level, to prevent door-spam. when a player is close to the door the door automatcly opens, when the player goes away from the door, this is closed.
I can see so many problem arise with this. I rather not fuck it up more then it already is.

Quote:
Originally Posted by LTR.2 View Post
-door won't open until everyone has their supplies. that means primmary weapon too. or maybe make the door open after XX seconds so prevent people leaving when the others are still loading or preparing.
People could be speedrunning for fun or trying to get achievements (the dual pistol one, can't remember what its called).

For prevent just rushing while people are still loading I believe there is a few out there already. "L4D Loading" being one of them.
Mr. Zero 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 22:17.


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