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

[L4D/L4D2]Survival Tank


Post New Thread Reply   
 
Thread Tools Display Modes
Author
marcel1231
Junior Member
Join Date: Jul 2023
Plugin ID:
8583
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    play only with tanks with survival gamemode!
    Old 11-02-2023 , 06:09   [L4D/L4D2]Survival Tank
    Reply With Quote #1

    Instruction:
    1.copy script TankSpawn.smx to your folder (plugins) or compile sp -> smx.
    2.Play in dedicated server or hosted.
    Attached Files
    File Type: sp Get Plugin or Get Source (TankSpawn.sp - 76 views - 968 Bytes)
    File Type: smx TankSpawn.smx (3.1 KB, 22 views)

    Last edited by marcel1231; 11-04-2023 at 09:11.
    marcel1231 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 11-02-2023 , 07:34   Re: [L4D]Survival Tank
    Reply With Quote #2

    I think you could've coded this better and with more effort.

    1. You shouldn't be forcing the server to survival mode.
    - You haven't accounted for late-loads, so if someone installs this on a server and refreshes their plugins list, this will force the server into survival mode in the middle of gameplay.
    - You did not provide any settings to make the game mode change optional. All you did was check if the plugin's convars are available, which is redundant when the plugin itself has to be loaded to even check for its own convars.

    2. You are spamming convar value changes.
    - You are changing the values of 2 convars provided by the game each time a player connects to the server. You should only need to do this once inside OnConfigsExecuted.
    __________________
    Psyk0tik is offline
    marcel1231
    Junior Member
    Join Date: Jul 2023
    Old 11-02-2023 , 12:22   Re: [L4D]Survival Tank
    Reply With Quote #3

    Quote:
    Originally Posted by Psyk0tik View Post
    I think you could've coded this better and with more effort.

    1. You shouldn't be forcing the server to survival mode.
    - You haven't accounted for late-loads, so if someone installs this on a server and refreshes their plugins list, this will force the server into survival mode in the middle of gameplay.
    - You did not provide any settings to make the game mode change optional. All you did was check if the plugin's convars are available, which is redundant when the plugin itself has to be loaded to even check for its own convars.

    2. You are spamming convar value changes.
    - You are changing the values of 2 convars provided by the game each time a player connects to the server. You should only need to do this once inside OnConfigsExecuted.
    now better?
    marcel1231 is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 11-02-2023 , 12:42   Re: [L4D]Survival Tank
    Reply With Quote #4

    Quote:
    Originally Posted by Psyk0tik View Post
    I think you could've coded this better and with more effort.

    1. You shouldn't be forcing the server to survival mode.
    - You haven't accounted for late-loads, so if someone installs this on a server and refreshes their plugins list, this will force the server into survival mode in the middle of gameplay.
    - You did not provide any settings to make the game mode change optional. All you did was check if the plugin's convars are available, which is redundant when the plugin itself has to be loaded to even check for its own convars.

    2. You are spamming convar value changes.
    - You are changing the values of 2 convars provided by the game each time a player connects to the server. You should only need to do this once inside OnConfigsExecuted.
    What do you say about this version of this plugin?
    Attached Files
    File Type: sp Get Plugin or Get Source (TankSpawn.sp - 51 views - 1.9 KB)
    BloodyBlade is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 11-02-2023 , 19:41   Re: [L4D]Survival Tank
    Reply With Quote #5

    Quote:
    Originally Posted by marcel1231 View Post
    now better?
    You are still forcing the server to switch to survival mode and you're not doing it properly. Changing the game mode during gameplay can cause all kinds of glitches from other plugins and the game itself.

    See this plugin for properly changing game mode during gameplay: [L4D & L4D2] Vote Mode

    Quote:
    Originally Posted by BloodyBlade View Post
    What do you say about this version of this plugin?
    This one looks more polished and less intrusive. I would recommend this version for anyone that's interested in using this plugin.
    __________________
    Psyk0tik is offline
    marcel1231
    Junior Member
    Join Date: Jul 2023
    Old 11-03-2023 , 06:39   Re: [L4D]Survival Tank
    Reply With Quote #6

    why vote for gamemode? so its only for survival supposed to work.
    marcel1231 is offline
    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 18:33.


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