Raised This Month: $51 Target: $400
 12% 

[L4D2] Charger Power - Objects Glow (1.7) [27-Jul-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
DonProof
Junior Member
Join Date: Jun 2021
Old 08-12-2021 , 13:01   Re: [L4D2] Charger Power - Objects Glow (1.4) [10-May-2020]
Reply With Quote #31

Hello Silver, I have the following problem and it is that in some entities that can be moved they do not have aura



DonProof is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-12-2021 , 17:29   Re: [L4D2] Charger Power - Objects Glow (1.4) [10-May-2020]
Reply With Quote #32

Code:
1.5 (13-Aug-2021)
    - Fixed not displaying a glow for all vehicle types. Thanks to "DonProof" for reporting.
__________________

Last edited by Silvers; 08-12-2021 at 18:09.
Silvers is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-13-2021 , 20:28   Re: [L4D2] Charger Power - Objects Glow (1.5) [13-Aug-2021]
Reply With Quote #33

You can use the "m_hasTankGlow" netprop to check if the entity should have tank glow aswell.

Example:
PHP Code:
if (HasEntProp(entityProp_Send"m_hasTankGlow") && GetEntProp(entityProp_Send"m_hasTankGlow") == 1)
    
//do stuff 
Don't know if it will have some use for the plugin code, but writing here just as additional info.
__________________

Last edited by Marttt; 08-13-2021 at 21:08.
Marttt is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-14-2021 , 10:21   Re: [L4D2] Charger Power - Objects Glow (1.5) [13-Aug-2021]
Reply With Quote #34

Quote:
Originally Posted by Marttt View Post
You can use the "m_hasTankGlow" netprop to check if the entity should have tank glow aswell.

Example:
PHP Code:
if (HasEntProp(entityProp_Send"m_hasTankGlow") && GetEntProp(entityProp_Send"m_hasTankGlow") == 1)
    
//do stuff 
Don't know if it will have some use for the plugin code, but writing here just as additional info.
Good to know, just the original plugin matches by classname/modelname so I don't think this would be the best idea. I should really read the original plugins cvar setting to only display for those it's being used for and not all. Will look into that at some point, low priority modification though. - plugin already does this
__________________

Last edited by Silvers; 08-15-2021 at 13:57.
Silvers is offline
noto3
Member
Join Date: Jan 2021
Old 08-15-2021 , 12:28   Re: [L4D2] Charger Power - Objects Glow (1.5) [13-Aug-2021]
Reply With Quote #35

L 08/15/2021 - 18:23:58: [SM] Exception reported: Cannot create new entity when no map is running
L 08/15/2021 - 18:23:58: [SM] BlaminD: L4D2_Charger_Power.smx
L 08/15/2021 - 18:23:58: [SM] Call stack trace:
L 08/15/2021 - 18:23:58: [SM] [0] CreateEntityByName
L 08/15/2021 - 18:23:58: [SM] [1] Line 293, D:\Plugins\L4D2_Charger_Power\L4D2_Charger_Po wer.sp::IsAllowedGameMode
L 08/15/2021 - 18:23:58: [SM] [2] Line 251, D:\Plugins\L4D2_Charger_Power\L4D2_Charger_Po wer.sp::IsAllowed
L 08/15/2021 - 18:23:58: [SM] [3] Line 193, D:\Plugins\L4D2_Charger_Power\L4D2_Charger_Po wer.sp::ConVarChanged_Allow
L 08/15/2021 - 18:23:58: [SM] [5] ConVar.SetString
L 08/15/2021 - 18:23:58: [SM] [6] Line 511, /home/forums/content/files/2/8/2/6/6/7/178802.attach::CheckCfgAnomaly
L 08/15/2021 - 18:23:58: [SM] [7] Line 359, /home/forums/content/files/2/8/2/6/6/7/178802.attach::CompareConfigs2
L 08/15/2021 - 18:23:58: [SM] [8] Line 329, /home/forums/content/files/2/8/2/6/6/7/178802.attach::OnAutoConfigsBuffered
L 08/15/2021 - 18:23:58: [SM] [9] Line 227, /home/forums/content/files/2/8/2/6/6/7/178802.attach::Event_RoundStart
L 08/15/2021 - 18:24:01: Error log file session closed.
noto3 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-15-2021 , 14:32   Re: [L4D2] Charger Power - Objects Glow (1.6) [15-Aug-2021]
Reply With Quote #36

Thanks, fixed.
__________________
Silvers is offline
Wolfyy
Junior Member
Join Date: Nov 2020
Old 09-04-2021 , 04:58   Re: [L4D2] Charger Power - Objects Glow (1.6) [15-Aug-2021]
Reply With Quote #37

Sadly "Plugin failed to compile! Please try contacting the author."
Wolfyy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-04-2021 , 18:20   Re: [L4D2] Charger Power - Objects Glow (1.6) [15-Aug-2021]
Reply With Quote #38

Quote:
Originally Posted by Wolfyy View Post
Sadly "Plugin failed to compile! Please try contacting the author."
Thanks, I changed to use RemoveEntity which is part of SM 1.10+ so I've fixed the compiler the forum uses to 1.10 and it will compile and download now.
__________________
Silvers is offline
BioHazardN7
Member
Join Date: Oct 2020
Location: Укр
Old 07-26-2023 , 10:21   Re: [L4D2] Charger Power - Objects Glow (1.6) [15-Aug-2021]
Reply With Quote #39

Code:
SourcePawn Compiler 1.11.0.6934
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

l4d2_charger_power_glow.sp(368) : warning 242: function "TimerHook" should return an explicit value
l4d2_charger_power_glow.sp(421) : warning 242: function "TimerStart" should return an explicit value
l4d2_charger_power_glow.sp(421) : warning 242: function "TimerStart" should return an explicit value
Code size:         18796 bytes
Data size:         5724 bytes
Stack/heap size:      16896 bytes
Total requirements:   41416 bytes

3 Warnings.
BioHazardN7 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 09:57.


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