Raised This Month: $32 Target: $400
 8% 

[L4D] Tank Spawn [Update 13. 08. 2017]


Post New Thread Reply   
 
Thread Tools Display Modes
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 08-09-2017 , 12:03   Re: [L4D] Tank Spawn [Update 09. 08. 2017]
Reply With Quote #11

Plugin update.
Alexmy is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 08-13-2017 , 09:30   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #12

Plugin update
Alexmy is offline
Mitsuru
Member
Join Date: Jun 2013
Location: Fakes country
Old 05-14-2019 , 08:21   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #13

How to disable the director spawning tank?2-4
Mitsuru is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 05-14-2019 , 10:04   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #14

Quote:
Originally Posted by Mitsuru View Post
How to disable the director spawning tank?2-4
What do you mean? Are you talking about it?
PHP Code:
sm_FirstTank_Random_2     CreateConVar("sm_FirstTank_Random_2",     "120.0",   "Random time the first tank on a normal map.",          FCVAR_NOTIFY);
sm_NextTank_Random_2      CreateConVar("sm_NextTank_Random_2",      "240.0",   "A random time the next tank.",                         FCVAR_NOTIFY); 
If it is, you can, put the same time or just delete this part of the code.
Alexmy is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 09-15-2019 , 16:44   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #15

Quote:
Originally Posted by Alexmy View Post
What do you mean? Are you talking about it?
PHP Code:
sm_FirstTank_Random_2     CreateConVar("sm_FirstTank_Random_2",     "120.0",   "Random time the first tank on a normal map.",          FCVAR_NOTIFY);
sm_NextTank_Random_2      CreateConVar("sm_NextTank_Random_2",      "240.0",   "A random time the next tank.",                         FCVAR_NOTIFY); 
If it is, you can, put the same time or just delete this part of the code.
He probably meant the tanks the Director would spawn.
BloodyBlade is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 11-12-2019 , 09:56   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #16

Hello Alexmy,

Ive been using your plugin on my Linux/Windows server, and it's been great to be able to have tanks spawn on chapter one maps for all official and add-on campaigns. I currently use 45 custom maps on my server, but for some unknown reason 15 of my maps wont work with your plugin. The ones that don't work are these:

Carnage
City 17
Quedan 4X Morir[
7 hours later
Bloody Sunday
Death stop
Die trying
Fallen
Heaven can wait
Cape murder
Chaos theory
Night terror
Redemption
Surrounded by the dead
The woods 2

Does your plugin need some extra code to be able to support these above maps? I have found that I can manually force a tank to spawn on these chapter one maps, but I have to use the !admin cheat command "!tank" to do so. So I was wondering if there was some way for your plugin to somehow automatically force these tanks to spawn for these maps using some other kind of cheat command in your plugin.

Thoughts?

Sunyata

Last edited by Sunyata; 11-12-2019 at 09:56.
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 11-17-2019 , 09:45   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #17

After further testing of this plugin, I've found that the tanks can only spawn on my dedicated Linux server if the game is hosted from the game lobby. If a player joins an empty server using quick connect from the console ie "connect <IP address>" I found that the tanks wont spawn at all. And the same applies with subsequent maps, even when using an ingame map changing plugin for instance.

Script enclosed here:
Spoiler


In the line of code here: "(IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i)) " something is not being addressed for when a player quick joins a game. So is there something that can be added/updated into the code to address this issue as well?

I guess from my last post (16) there is no viable solution to fixing the tanks not spawning on the above mentioned custom maps either.
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 11-22-2019 , 11:24   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #18

I had to hack Alexmy's tank plugin and remove 86 lines of code and make changes/updates where necessary to get it to spawn the tanks on the 15 customs maps I mentioned in my above post 16. But the good news is that all chapter one tanks are now spawning as they should. \o/

However I don't know how to resolve the player 'quick connect' issue from the console (as I'd mentioned in post 17 above). Don't know if anyone here can give advice on what code is needed on how to include a solution for this?

I've also created a new handshake plugin that will work with Red Alex's tank spawn plugin. I use his tank plugin a lot on my server for all other maps, and use Alexmy's for chapter one maps. But what my handshake plugin does is use its own set of timers, that can call upon the cvar values in Red Alex's tank plugin and apply them to Alexmy's tank plugin without using his plugin timer values. With this new handshake set-up, I can load chapter one tanks with Alexmy's plugin, then unload it so that Red Alex's tank plugin can be used for all the other maps. It's a rather complex setup trying to get 3 different plugins to talk to each other like this, but the nice thing is that it's working really well with my server setup.

I'm still working on this handshake script itself - to improve it as well as I can, but what I'll do later is create a new post for this new plugin, and I'll also give credit to Alexmy and Red Alex for giving me the inspiration for creating this new plugin where I can now have tanks spawn the way I want them to on all maps.

Cheers,

Sunyata

Last edited by Sunyata; 11-22-2019 at 11:29. Reason: fixed typos
Sunyata is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 11-23-2019 , 04:43   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #19

Quote:
Originally Posted by Sunyata View Post
Hello Alexmy,

Ive been using your plugin on my Linux/Windows server, and it's been great to be able to have tanks spawn on chapter one maps for all official and add-on campaigns. I currently use 45 custom maps on my server, but for some unknown reason 15 of my maps wont work with your plugin. The ones that don't work are these:

Carnage
City 17
Quedan 4X Morir[
7 hours later
Bloody Sunday
Death stop
Die trying
Fallen
Heaven can wait
Cape murder
Chaos theory
Night terror
Redemption
Surrounded by the dead
The woods 2

Does your plugin need some extra code to be able to support these above maps? I have found that I can manually force a tank to spawn on these chapter one maps, but I have to use the !admin cheat command "!tank" to do so. So I was wondering if there was some way for your plugin to somehow automatically force these tanks to spawn for these maps using some other kind of cheat command in your plugin.

Thoughts?

Sunyata
Hi, maybe there are simply no hooks on these company heads for which the plug-in could catch.
Alexmy is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 11-23-2019 , 05:58   Re: [L4D] Tank Spawn [Update 13. 08. 2017]
Reply With Quote #20

Maybe so, but by adding a timer to MapStart and then adding/adjusting your timer-1 code to the MapStart routine, my other handshake plugin then makes a call to your updated MapStart routine to spawn tanks on those 15 custom maps. Maybe it's not the best way to write code, but at least it works for me now, and that's all that matters to me

PHP Code:
public void OnPluginStart()
{     
    
HookEvent("round_start"Event_RoundTank,  EventHookMode_Post); // also adjusted code in Event_RoundTank 
    
HookEvent("round_end"Event_RoundEnd,   EventHookMode_Post); // also adjusted code Event_RoundEnd
    
    
CreateTimer(30.0MapStart); // new code timer 

    
cleaner();
}

public 
Action:MapStart(Handle:timer)
{
    
CreateTimer(5.0SpawnTankTIMER_FLAG_NO_MAPCHANGE);  // new modified code timer


Last edited by Sunyata; 11-23-2019 at 06:00. Reason: php added
Sunyata 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 19:50.


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