Raised This Month: $44 Target: $400
 11% 

[L4D2] Rock Types


Post New Thread Reply   
 
Thread Tools Display Modes
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 04-12-2020 , 12:49   Re: [L4D2] Rock Types
Reply With Quote #31

Hello, could you add a Cvar to activate in game mode?

PHP Code:
sm_rock_types_mode "0" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together. 
Tank Rush is offline
Venom1777
Junior Member
Join Date: Oct 2019
Old 04-24-2020 , 15:25   Re: [L4D2] Rock Types
Reply With Quote #32

Quote:
Originally Posted by Tank Rush View Post
Hello, could you add a Cvar to activate in game mode?

PHP Code:
sm_rock_types_mode "0" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together. 



0 is all game modes, 1 coop mode
Venom1777 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-03-2020 , 05:11   Re: [L4D2] Rock Types
Reply With Quote #33

Quote:
Originally Posted by Tank Rush View Post
Hello, could you add a Cvar to activate in game mode?
I'm not going to add this extra code, for this there must be a separate plugin that will control the enabling and disabling of plugins in different modes and maps.
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-03-2020 , 11:56   Re: [L4D2] Rock Types
Reply With Quote #34

Here is a version with gamemode check option, similar to what is done in Silver's plugins, may need some tests.

Cvars above:
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_rock_types.sp - 190 views - 38.8 KB)
__________________

Last edited by Marttt; 07-03-2020 at 11:58.
Marttt is offline
Skyeel
New Member
Join Date: Sep 2020
Old 09-28-2020 , 04:04   Re: [L4D2] Rock Types
Reply With Quote #35

The update now gives an error.

Code:
L 09/28/2020 - 15:55:31: SourceMod error session started
L 09/28/2020 - 15:55:31: Info (map "c5m2_park") (file "D:\server\l4d2_ds1.10\left4dead2\addons\sourcemod\logs\errors_20200928.log")
L 09/28/2020 - 15:55:31: [SM] Exception reported: Unable to set signature from conf "CMolotov::EmitGrenade"
L 09/28/2020 - 15:55:31: [SM] Blaming: l4d2_rocktypes.smx
L 09/28/2020 - 15:55:31: [SM] Call stack trace:
L 09/28/2020 - 15:55:31: [SM]   [0] SetFailState
L 09/28/2020 - 15:55:31: [SM]   [1] Line 642, E:\Users\Desktop\GameServer\Left4Dead2\scripting\l4d2_rocktypes.sp::OnPluginStart
L 09/28/2020 - 15:55:31: [SM] Unable to load plugin "l4d2_rocktypes.smx": Error detected in plugin startup (see error logs)
Skyeel is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 09-29-2020 , 08:20   Re: [L4D2] Rock Types
Reply With Quote #36

updated
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 11-07-2021 , 18:31   Re: [L4D2] Rock Types
Reply With Quote #37

bro, only one type of rock appears, which is the fire rock. What do I need to change in sp so that other types of rocks appear?

Last edited by King_OXO; 11-07-2021 at 18:38.
King_OXO is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 11-08-2021 , 21:05   Re: [L4D2] Rock Types
Reply With Quote #38

Quote:
Originally Posted by King_OXO View Post
bro, only one type of rock appears, which is the fire rock. What do I need to change in sp so that other types of rocks appear?
open source code, go to 33 line, change chances, compile

P.S I will add convars for chances in next update
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 11-09-2021 , 16:58   Re: [L4D2] Rock Types
Reply With Quote #39

Quote:
Originally Posted by BHaType View Post
open source code, go to 33 line, change chances, compile

P.S I will add convars for chances in next update
ok, thank you
King_OXO 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 21:04.


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