Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Sappy fix Update [04-June-2012]


Post New Thread Reply   
 
Thread Tools Display Modes
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 06-04-2012 , 16:42   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #31

Quote:
Originally Posted by RavenDan29 View Post
Problem is when you die and rejoin as another available bot with takeover bot mod you end up with 2 francis and one of them isnt counted at the end of the round
if you re-join the game give you a new character not my plugin.
Quote:
Originally Posted by DaN1kyM View Post
Hey dude i see mini bug U'r plugin if in server set's (multislots)- plugin

If player idle and he white and black he going to spector-(idle) hes bot takeover yea ?

So...held for 3 seconds and he tipe !join bot crate and player get fucking 50 hp and he no black and white

I try fix this bug combinate U'r and for this plugin "l4d2_BWDefib" i wanna make how player idle and he back to survivors - and he fucking white and black no 50hp DD

I'm from Rus so sorry for my shit ENG

Pls fix this =)
You have problem with multislot, like i said this plugin is buggy try another. No idea what are you talking about
__________________

Last edited by disawar1; 06-04-2012 at 16:50.
disawar1 is offline
RavenDan29
Veteran Member
Join Date: Sep 2009
Old 06-05-2012 , 04:01   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #32

@disawar rejoin as another bot not come out of game and rejoin, I was merely pointing out the flaw in remaining same char throughout I would prefer if you took this feature off or had a seperate .smx for those of us like myself that would prefer not to have this feature. but i believe there is a work around cant remmember which one but either 8 survivors or character select menu has a fix to return the char back to original at saferooms and round ends. maybe you should ask for help from the relevant authour of the relevant plugin.

@DaN1kyM you shouldnt swear openly on a forum youll get banned use like this f$6k for example.

found it on 8 survivor plugin

// When the survivors reaches the saferoom they will get the default models. This should fix scoring bugs
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_8survivors_safescoring "1"
__________________

Last edited by RavenDan29; 06-05-2012 at 04:04.
RavenDan29 is offline
DaN1kyM
Junior Member
Join Date: Apr 2012
Location: Russia =)
Old 06-05-2012 , 08:29   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #33

Sorry for "F@%k and e.t.c word's" =)

I know how to fix bug multislot's - sappy fix BUT i not know how scripting this

Pls look this:

PHP Code:
public OnPluginStart()
{
    
#if debug
        
BuildPath(Path_SMDEBUGsizeof(DEBUG), LOG);
    
#endif

    
CreateConVar("sappy_fix_version"PLUGIN_VERSION"Sappy Bug Fix plugin version"FCVAR_REPLICATED|FCVAR_NOTIFY);
    
    
decl String:game[16]
    
    
GetGameFolderName(gamesizeof(game))
    if (!
StrEqual(game"left4dead2"false)) SetFailState("Plugin supports Left 4 Dead 2 only.")
    
CreateConVar("bwdefib_version"PLUGIN_VERSION"The version of Black and White on Defib."FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD)
    
h_Enabled CreateConVar("l4d2_bwdefib""1""Is Black and White on Defib enabled?"FCVAR_PLUGIN);,
    
h_RemainingIncaps CreateConVar("l4d2_bwdefib_incaps""0""Number of remaining incaps with which a defibed survivor is brought back."FCVAR_PLUGIN)
    
h_Health CreateConVar("l4d2_bwdefib_health""1.0""Amount of health with which a defibed survivor is brought back."FCVAR_PLUGINtrue1.0true100.0)
    
h_TempHealth CreateConVar("l4d2_bwdefib_temphealth""30.0""Amount of temporary health with which a defibed survivor is brought back."FCVAR_PLUGINtrue0.0true100.0)
    
AutoExecConfig(true"l4d2_bwdefib")
    
    
g_hSf            =    CreateConVar("sappy_fix_sacrifice""1""1: Enable Sacrifice Bug Fix for survival mode, 0: Disable fix"FCVAR_PLUGINtrue0.0true1.0);
    
g_hBebop        =    CreateConVar("sappy_fix_bebop""4""Min amount of Survivors when round starts, 0: Disable fix if u not use bebop, MultiSlots, bot_l4d plugins. Note: sometimes bebop cant kick bot when player leave."FCVAR_PLUGIN);
    
g_hSurvivor    =    CreateConVar("sappy_fix_extrabots""0""Max amount of Survivors on your server, 0: Disable fix if u not use SuperVersus, L4D Players. Note: sometimes you can see more bots than in the your cfg"FCVAR_PLUGIN);
    
g_hTimer        =    CreateConVar("sappy_fix_timer""10""Check Survivors limit after x.x sec when round started, 0: Disable checking"FCVAR_PLUGIN);
    
g_hItems        =    CreateConVar("sappy_fix_dropitems""1""1: Delete all player or bot items when they disconnected, 0: Disable fix. Note: This options blocks item spam for bebop, multislot.. plugin"FCVAR_PLUGINtrue0.0true1.0);
    
g_hDef        =    CreateConVar("sappy_fix_defibrillator""1""1: Ghost revive bug fix (Bebop), 0: Disable for left 4 dead."FCVAR_PLUGINtrue0.0true1.0);
    
g_hModel        =    CreateConVar("sappy_fix_models""1""Save survivors model every x.x sec and keep character when going idle/map change, 0: Disable fix."FCVAR_PLUGINtrue0.0true5.0);
    
AutoExecConfig(true"fix_Sappy");
    
    
g_hGameMode    =    FindConVar("mp_gamemode");
    
hFreeze        =    FindConVar("sb_stop");
    
    
HookConVarChange(g_hSfOnCVarChange);
    
HookConVarChange(g_hBebopOnCVarChange);
    
HookConVarChange(g_hSurvivorOnCVarChange);
    
HookConVarChange(g_hTimerOnCVarChange);
    
HookConVarChange(g_hItemsOnCVarChange);
    
HookConVarChange(g_hDefOnCVarChange);
    
HookConVarChange(g_hModelOnCVarChange);

    
#if debug
    
RegAdminCmd("fx"CmdFixADMFLAG_KICK);
    
#endif

PHP Code:
public Action:PlayerBack(Handle:eventString:event_name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if (
client && !IsFakeClient(client)){    
    new 
client GetClientOfUserId(GetEventInt(event"player, subject"));
    new 
fake GetClientOfUserId(GetEventInt(event"bot"));
    new 
client GetClientOfUserId(GetEventInt(event"subject"))
    new 
MaxIncaps GetConVarInt(FindConVar("survivor_max_incapacitated_count"))
    
SetEntProp(clientProp_Send"m_currentReviveCount", (MaxIncaps GetConVarInt(h_RemainingIncaps)))    
    if (
GetEntProp(clientProp_Send"m_currentReviveCount") == MaxIncapsSetEntProp(clientProp_Send"m_isGoingToDie"1)
    
SetEntProp(clientProp_Send"m_iHealth"GetConVarInt(h_Health))
    
SetTempHealth(clientGetConVarInt(h_TempHealth)) 
and i addid this U'r plugin:

PHP Code:
SetTempHealth(clienthp)
{
    
SetEntPropFloat(clientProp_Send"m_healthBufferTime"GetGameTime())
    new 
Float:newOverheal hp 1.0 //prevent tag mismatch
    
SetEntPropFloat(clientProp_Send"m_healthBuffer"newOverheal)

So if U see i wanna make HOW PLAYER Idle and he back to survivor he white and black

But not working say's 5 error's how i complite =)

All addid scripts i get for here http://forums.alliedmods.net/showthread.php?p=1012022

Last edited by DaN1kyM; 06-05-2012 at 08:30.
DaN1kyM is offline
skull_
Junior Member
Join Date: Mar 2012
Old 06-12-2012 , 11:50   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #34

very good plugin, but, like sev said, bill crashes my server. to me, this happens when bill goes in spec or comes from spec while sappy_fix_models is "1". if you can fix this, it would be awesome. (if it matters, im using this https://forums.alliedmods.net/showthread.php?t=107121)
skull_ is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 06-12-2012 , 12:19   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #35

I think, because you are using linux version on windows server and vice versa. l4dcsm_b.smx = LINUX

Look, I have no crashes on win (l4dcsm_a.smx)

status
PHP Code:
hostnameHypnotize
version 
2.1.0.4 4777 insecure  (unknown)
udp/ip  192.168.0.1:27016 [ public 188.16.126.102:27016 ]
os      Windows Dedicated
map     
c1m1_hotel
players 
1 humans0 bots (2 max) (not hibernating) (unreserved
Click image for larger version

Name:	2012-06-12_00002.jpg
Views:	445
Size:	85.2 KB
ID:	104933

Sappy debug
Code:
L 06/12/2012 - 22:46:18: [fix_Sappy.smx] [Sappy Fix] raziEiL 1, Bill 2 [IDLE]
L 06/12/2012 - 22:46:18: [fix_Sappy.smx] [Model Fix] Change Bill to raziEiL model <models/survivors/survivor_namvet.mdl>
Click image for larger version

Name:	2012-06-12_00003.jpg
Views:	407
Size:	94.2 KB
ID:	104934

Sappy debug
Code:
L 06/12/2012 - 22:46:34: [fix_Sappy.smx] [Sappy Fix] raziEiL [leave][BACK], Nick afk=0
L 06/12/2012 - 22:46:34: [fix_Sappy.smx] [Model Fix] Change raziEiL to raziEiL model <models/survivors/survivor_namvet.mdl>
__________________

Last edited by disawar1; 06-12-2012 at 12:51.
disawar1 is offline
skull_
Junior Member
Join Date: Mar 2012
Old 06-12-2012 , 23:22   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #36

I am using l4dcsm_a.smx on windows 7.
I chose Bill, i went afk, no crash. several times, i went afk and joined back, no crash.
Then i used !csc to change the other players to be Bill. After few times of going afk and back (as Bill), server crashed.
I did exact same thing with sappy_fix_models "0", but this time i didnt manage to get it to crash.
I wonder if its a csm problem or (if i use !csc), or problem with sappy..

Last edited by skull_; 06-12-2012 at 23:23.
skull_ is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 06-15-2012 , 16:32   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #37

thanks for report i will check it
__________________
disawar1 is offline
Sev
Veteran Member
Join Date: May 2010
Old 06-15-2012 , 16:40   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #38

The problem is most likely Bot Bill since the last version of csm_a does not code/hook Bill to change back to Nick on a map change like it does for human player Bills. That or having more than one person/bot being Bill on a map.

Maybe disawar1 could code in some sort of rule that reverts any Bot Bill to nick on a map change then back to Bill on mapstart and/or limits Bill to be playable by one human or bot.

Last edited by Sev; 06-15-2012 at 16:42.
Sev is offline
Sev
Veteran Member
Join Date: May 2010
Old 06-18-2012 , 00:13   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #39

Getting this in console every time I launch server.

PHP Code:
L 06/18/2012 00:06:49: [SMNative "UnhookEvent" reportedGame event "player_dead" has no active hook
L 06
/18/2012 00:06:49: [SMDisplaying call stack trace for plugin "fix_Sappy.smx":
L 06/18/2012 00:06:49: [SM]   [0]  Line 824, /home/groups/alliedmodders/forums/files/1/5/2/2/5/4/104620.attach::Plugin()
L 06/18/2012 00:06:49: [SM]   [1]  Line 733, /home/groups/alliedmodders/forums/files/1/5/2/2/5/4/104620.attach::OnConfigsExecuted() 

Last edited by Sev; 06-18-2012 at 00:15.
Sev is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 06-18-2012 , 06:46   Re: [L4D & L4D2] Sappy fix Update 04-June
Reply With Quote #40

oh WTF my bad, thanks!

Quote:
UnhookEvent("player_dead", Event_PlayerDead);
to
Quote:
UnhookEvent("player_death", Event_PlayerDead);
compile plugin with #define KillBill 1 to not to keep the Bill model or #define KillBill 0 to save it
Attached Files
File Type: sp Get Plugin or Get Source (fix_Sappy.sp - 737 views - 26.1 KB)
__________________

Last edited by disawar1; 06-21-2012 at 20:24. Reason: lol
disawar1 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:44.


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