AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [L4D2] Rescue Vehicle ETA New Version (https://forums.alliedmods.net/showthread.php?t=338418)

Maur0 07-03-2022 15:14

[L4D2] Rescue Vehicle ETA New Version
 
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.

Psyk0tik 07-03-2022 16:53

Re: [L4D2] Rescue Vehicle ETA New Version
 
Quote:

Originally Posted by Maur0 (Post 2783003)
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>

Maur0 07-03-2022 19:54

Re: [L4D2] Rescue Vehicle ETA New Version
 
Quote:

Originally Posted by Psyk0tik (Post 2783006)
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"


Psyk0tik 07-03-2022 20:08

Re: [L4D2] Rescue Vehicle ETA New Version
 
Quote:

Originally Posted by Maur0 (Post 2783009)
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;
}


Maur0 07-03-2022 21:03

Re: [L4D2] Rescue Vehicle ETA New Version
 
Yeah, It worked! :D

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.

Marttt 07-04-2022 17:28

Re: [L4D2] Rescue Vehicle ETA New Version
 
Just remove the IsSoundPrecached part and "continue".

Remove this:
PHP Code:

            if (IsSoundPrecached(sNeededSounds[i]))
            {
                continue;
            } 



All times are GMT -4. The time now is 19:26.

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