Skip to content

Commit

Permalink
Add sourcemod 1.13 to check plugins (SirPlease#849)
Browse files Browse the repository at this point in the history
* Add sourcemod 1.13 to check

* Test

* Update left4dhooks_lux_library.inc

* Update holdout_bonus.sp

* Update l4dd_forwards.sp

* Update left4dhooks_test.sp

* Update survivor_mvp.sp

* Update left4dhooks_test.sp

* Update left4dhooks_test.sp
  • Loading branch information
A1mDev authored Dec 9, 2024
1 parent 0953019 commit 0eae66d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 31 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
#- "1.10"
- "1.11"
- "1.12"
- "1.13"

steps:
- uses: actions/checkout@v4
Expand Down
23 changes: 10 additions & 13 deletions addons/sourcemod/scripting/holdout_bonus.sp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public HoldOutStarts ( const String:output[], caller, activator, Float:delay )
{
if ( g_bHoldoutActive ) { return; }

PrintDebug( 1, "Holdout Starts (hooked)." );
PrintDebug( "Holdout Starts (hooked)." );

g_bHoldoutActive = true;
g_iHoldoutStartTime = GetTime();
Expand Down Expand Up @@ -401,7 +401,7 @@ public HoldOutEnds_Hook ( const String:output[], caller, activator, Float:delay
// hooked on map logic
// only use as safeguard / check for time

PrintDebug( 1, "Holdout Ends (hooked): abs: %i / prg %i / defined %i.", GetTime() - g_iHoldoutStartTime, g_iProgress, g_iHoldoutTime );
PrintDebug( "Holdout Ends (hooked): abs: %i / prg %i / defined %i.", GetTime() - g_iHoldoutStartTime, g_iProgress, g_iHoldoutTime );

if ( g_bHoldoutActive )
{
Expand All @@ -417,7 +417,7 @@ stock HoldOutEnds( bool:bByRequest = false )
{
g_bHoldoutActive = false;

PrintDebug( 1, "Holdout over, awarding bonus: prg %i / defined %i.", g_iProgress, g_iHoldoutTime );
PrintDebug( "Holdout over, awarding bonus: prg %i / defined %i.", g_iProgress, g_iHoldoutTime );

g_iActualBonus = CalculateHoldOutBonus();

Expand Down Expand Up @@ -638,7 +638,7 @@ KV_Load()
return;
}

PrintDebug( 1, "Holdout data loaded from file: %s.", sNameBuff );
PrintDebug( "Holdout data loaded from file: %s.", sNameBuff );
}

bool: KV_UpdateHoldoutMapInfo()
Expand Down Expand Up @@ -680,7 +680,7 @@ bool: KV_UpdateHoldoutMapInfo()
KvGetString( g_kHIData, "t_e_hook", g_sHoldoutEndHook, MAXSTR, "" );
}

PrintDebug( 1, "Read holdout mapinfo for '%s': %i / (factor: %.2f; abs: %i).",
PrintDebug( "Read holdout mapinfo for '%s': %i / (factor: %.2f; abs: %i).",
mapname, g_bHoldoutThisRound,
g_fHoldoutPointFactor, g_iHoldoutPointAbsolute
);
Expand Down Expand Up @@ -734,13 +734,10 @@ stock GetPlayerCharacter ( client )
return tmpChr;
}

stock PrintDebug( debugLevel, const String:Message[], any:... )
stock PrintDebug( const String:Message[], any:... )
{
//if (debugLevel <= GetConVarInt(g_hCvarDebug))
//{
decl String:DebugBuff[256];
VFormat(DebugBuff, sizeof(DebugBuff), Message, 3);
LogMessage(DebugBuff);
//PrintToServer(DebugBuff);
//}
decl String:DebugBuff[256];
VFormat(DebugBuff, sizeof(DebugBuff), Message, 3);
LogMessage(DebugBuff);
//PrintToServer(DebugBuff);
}
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,11 @@ stock void TE_SetupPhysicsProp(float vecModelOrigin[3],
TE_WriteNum("r", RGB[0]);
TE_WriteNum("g", RGB[1]);
TE_WriteNum("b", RGB[2]);

// Garbage code to prevent warning, symbol 'iSkin' is not used
if (iSkin == -1) {
LogError("TE_SetupPhysicsProp %d", iSkin);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/l4dd/l4dd_forwards.sp
Original file line number Diff line number Diff line change
Expand Up @@ -5517,7 +5517,7 @@ MRESReturn DTR_CSquirrelVM_GetValue(DHookReturn hReturn, DHookParam hParams) //
bool StringToVector(const char[] str, const char[] spilt, float vec[3])
{
char buffers[3][20];
if( 3 > ExplodeString(str, spilt, buffers, sizeof(buffers[]), sizeof(buffers[][]), true) )
if( 3 > ExplodeString(str, spilt, buffers, sizeof(buffers), sizeof(buffers[]), true) )
return false;

for( int i = 0; i < 3; ++i )
Expand Down
32 changes: 16 additions & 16 deletions addons/sourcemod/scripting/left4dhooks_test.sp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Action sm_l4df(int client, int args)
return Plugin_Handled;
}

stock Action TimerCancelStagger(Handle timer, int client)
/*stock Action TimerCancelStagger(Handle timer, int client)
{
client = GetClientOfUserId(client);
if( client )
Expand All @@ -343,7 +343,7 @@ stock Action TimerCancelStagger(Handle timer, int client)
}
return Plugin_Continue;
}
}*/

Action sm_l4dd(int client, int args)
{
Expand Down Expand Up @@ -2380,7 +2380,7 @@ Action sm_l4dd(int client, int args)
return Plugin_Handled;
}

stock Action TimerDetonate(Handle timer, int entity)
/*stock Action TimerDetonate(Handle timer, int entity)
{
entity = EntRefToEntIndex(entity);
if( entity != INVALID_ENT_REFERENCE )
Expand All @@ -2389,9 +2389,9 @@ stock Action TimerDetonate(Handle timer, int entity)
}
return Plugin_Continue;
}
}*/

stock Action TimerDetonateVomitjar(Handle timer, int entity)
/*stock Action TimerDetonateVomitjar(Handle timer, int entity)
{
entity = EntRefToEntIndex(entity);
if( entity != INVALID_ENT_REFERENCE )
Expand All @@ -2406,9 +2406,9 @@ stock Action TimerDetonateVomitjar(Handle timer, int entity)
}
return Plugin_Continue;
}
}*/

void GetGroundAngles(float vOrigin[3])
/*void GetGroundAngles(float vOrigin[3])
{
float vAng[3], vLookAt[3], vTargetOrigin[3];
Expand All @@ -2428,14 +2428,14 @@ void GetGroundAngles(float vOrigin[3])
}
delete trace;
}
}*/

stock bool _TraceFilter(int entity, int contentsMask)
/*stock bool _TraceFilter(int entity, int contentsMask)
{
if( !entity || entity <= MaxClients || !IsValidEntity(entity) ) // dont let WORLD, or invalid entities be hit
return false;
return true;
}
}*/



Expand Down Expand Up @@ -5720,7 +5720,7 @@ stock void OnPummelTeleport(DataPack dPack)
}

// To block the stumble animation use the next two functions:
stock Action OnPummelOnAnimPre(int client, int &anim)
/*stock Action OnPummelOnAnimPre(int client, int &anim)
{
if( anim == L4D2_ACT_TERROR_SLAMMED_WALL || anim == L4D2_ACT_TERROR_SLAMMED_GROUND )
{
Expand All @@ -5730,14 +5730,14 @@ stock Action OnPummelOnAnimPre(int client, int &anim)
}
return Plugin_Continue;
}
}*/

stock Action TimerOnPummelResetAnim(Handle timer, int victim) // Don't need client userID since it's not going to be validated just removed
/*stock Action TimerOnPummelResetAnim(Handle timer, int victim) // Don't need client userID since it's not going to be validated just removed
{
AnimHookDisable(victim, OnPummelOnAnimPre);
return Plugin_Continue;
}
}*/

public void L4D2_OnPummelVictim_Post(int attacker, int victim)
{
Expand Down Expand Up @@ -6131,9 +6131,9 @@ void ForwardCalled(const char[] format, any ...)
// PrintToServer("----------");
}

stock bool TraceFilter(int entity, int contentsMask, int client)
/*stock bool TraceFilter(int entity, int contentsMask, int client)
{
if( entity == client )
return false;
return true;
}
}*/
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/survivor_mvp.sp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ new iRoundNumber;
new bInRound;
new bPlayerLeftStartArea; // used for tracking FF when RUP enabled

stock char sTmpString[MAX_NAME_LENGTH]; // just used because I'm not going to break my head over why string assignment parameter passing doesn't work
//stock char sTmpString[MAX_NAME_LENGTH]; // just used because I'm not going to break my head over why string assignment parameter passing doesn't work

/*
* Natives
Expand Down

0 comments on commit 0eae66d

Please sign in to comment.