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

Solved [L4D2]How to detect change finale stage?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 01-13-2020 , 19:23   [L4D2]How to detect change finale stage?
Reply With Quote #1

hi all, I would like to know if it is possible to detect the change of stage with another method other than the Left 4 Downtown extension, since its forward (L4D2_OnChangeFinaleStage) apparently stopped working... :/.
pd: i use sm1.10 on windows :s

Last edited by xZk; 01-15-2020 at 17:16. Reason: resolved
xZk is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-13-2020 , 20:14   Re: [L4D2]How to detect change finale stage?
Reply With Quote #2

What errors do you get?
__________________
Spirit_12 is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 01-13-2020 , 20:40   Re: [L4D2]How to detect change finale stage?
Reply With Quote #3

Quote:
Originally Posted by Spirit_12 View Post
What errors do you get?
nothing errors in log, I just the forward i think it stopped working when I updated to sm1.10 :c .
I'll share the plugin where i used this on the tank challenge map
Attached Files
File Type: sp Get Plugin or Get Source (challenge_saveround.sp - 98 views - 4.2 KB)

Last edited by xZk; 01-13-2020 at 20:41.
xZk is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-14-2020 , 07:02   Re: [L4D2]How to detect change finale stage?
Reply With Quote #4

Here's a full list of finale stages if you want. Taken from the latest unreleased version of my Rescue Vehicle ETA plugin.
Fun fact: It always returns to 18 in non finale maps or when the finale hasn't started yet.
FinaleStageType ints:

Last edited by cravenge; 01-14-2020 at 07:04.
cravenge is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-14-2020 , 19:38   Re: [L4D2]How to detect change finale stage?
Reply With Quote #5

Have you tried the Dhooks way ?
__________________
Spirit_12 is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 01-15-2020 , 10:16   Re: [L4D2]How to detect change finale stage?
Reply With Quote #6

Quote:
Originally Posted by cravenge View Post
...
thanks, it is usefull, but as I said that extension stopped working for me, and i would like to know another alternative. I know this is possible through code vscript, but how could it be done to listen to events/callbacks vscript from a plugin?..:/
xZk is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 01-15-2020 , 10:17   Re: [L4D2]How to detect change finale stage?
Reply With Quote #7

Quote:
Originally Posted by Spirit_12 View Post
Have you tried the Dhooks way ?
I still don't have enough knowledge to test that way :c
xZk is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-15-2020 , 12:02   Re: [L4D2]How to detect change finale stage?
Reply With Quote #8

You need to detect if the state changed or if the map is a finale?
__________________
Marttt is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 01-15-2020 , 14:12   Re: [L4D2]How to detect change finale stage?
Reply With Quote #9

i need to detect if the state changed, but specifically when changing to the next finale stage.
for example this function(OnBeginCustomFinaleStage), It is ideal for what I want, but I want to detect that from a plugin :/
xZk is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 01-15-2020 , 14:26   Re: [L4D2]How to detect change finale stage?
Reply With Quote #10

Quote:
Originally Posted by xZk View Post
i need to detect if the state changed, but specifically when changing to the next finale stage.
for example this function(OnBeginCustomFinaleStage), It is ideal for what I want, but I want to detect that from a plugin :/
GameData
Spoiler


Code
Spoiler


i didnt test but it should work
__________________
cry

Last edited by BHaType; 01-15-2020 at 14:29.
BHaType is offline
Send a message via AIM to BHaType
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 06:26.


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