Raised This Month: $359 Target: $400
 89%   Almost there!

[L4D2] Rescue Vehicle ETA New Version


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maur0
Senior Member
Join Date: Aug 2020
Old 07-03-2022 , 15:14   [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #1

Hello. I wanted to know if there is any plugin or extension that allows to give an estimated time to the final holdout events. Since I see it very short and simple without having to hold on for a long time.

I have already tried with this plugin:
https://forums.alliedmods.net/showthread.php?p=2445265

But it doesn't work, maybe because I need the Lef 4 Downtown extension, which I have other extensions that conflict with that, and I wonder if there is another way to update it to be compatible without using Left 4 Downtown.

Also, make the campaigns: Dead Center, The Passing, The Parish and Cold Stream, have a countdown time that forces the survivors to give themselves first before the time runs out.
Maur0 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-03-2022 , 16:53   Re: [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #2

Quote:
Originally Posted by Maur0 View Post
But it doesn't work, maybe because I need the Lef 4 Downtown extension, which I have other extensions that conflict with that, and I wonder if there is another way to update it to be compatible without using Left 4 Downtown.
Have you tried switching to Left 4 DHooks?

Change this line:
Code:
#include <left4downtown>
To this line:
Code:
#include <left4dhooks>
__________________
Psyk0tik is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 07-03-2022 , 19:54   Re: [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #3

Quote:
Originally Posted by Psyk0tik View Post
Have you tried switching to Left 4 DHooks?

Change this line:
Code:
#include <left4downtown>
To this line:
Code:
#include <left4dhooks>
I just tried what you said and when I compile it, I get this error and it doesn't let me :/
Code:
Error 181: function argument named `vector`differs from prototype
error 021: symbol already defined: " GetRandomClient"
Maur0 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-03-2022 , 20:08   Re: [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #4

Quote:
Originally Posted by Maur0 View Post
I just tried what you said and when I compile it, I get this error and it doesn't let me :/
Code:
Error 181: function argument named `vector`differs from prototype
error 021: symbol already defined: " GetRandomClient"
Change this:
Code:
L4D_OnSpawnTank(float vector[3], float qangle[3])
To this:
Code:
L4D_OnSpawnTank(const float vecPos[3], const float vecAng[3])
Look for this and remove it:
Code:
int GetRandomClient()
{
	int iClient = 0;
	for (int i = 1; i <= MaxClients; i++)
	{
		if (IsClientInGame(i))
		{
			iClient = i;
			break;
		}
	}
	return iClient;
}
__________________
Psyk0tik is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 07-03-2022 , 21:03   Re: [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #5

Yeah, It worked!

The only thing he gave me was a warning about sounds.
Code:
warning 234: symbol "IsSoundPrecached" is marked as deprecated: Doesn´t work correctly, always returns true.
So I tried it and it works. Something in itself, it was not what I thought I was going to do. Since you cannot modify or change the duration time, either in the console or in a cfg file. And that I have seen a gameplay on another server where you see how much time passes when the rescue vehicle arrives, and then the time stopped when a Tank was in play.

But hey, that must be a plugin author issue and I don't know if there is another plugin that allows something like that.

Thanks for the plugin fix.
Maur0 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-04-2022 , 17:28   Re: [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #6

Just remove the IsSoundPrecached part and "continue".

Remove this:
PHP Code:
            if (IsSoundPrecached(sNeededSounds[i]))
            {
                continue;
            } 
__________________
Marttt 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:45.


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