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

[NMRiH] Better Tools (v1.0.4) [13-Aug-21]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MsDysphie
AlliedModders Donor
Join Date: Dec 2017
Plugin ID:
7721
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 07-14-2021 , 21:51   [NMRiH] Better Tools (v1.0.4) [13-Aug-21]
    Reply With Quote #1

    This plugin seeks to make tools a bit more interesting by expanding their functionality.



    Requirements:
    • Sourcemod 1.11 or higher

    Full info: https://github.com/dysphie/nmrih-better-tools
    Download: https://github.com/dysphie/nmrih-better-tools/releases
    Source code: https://github.com/dysphie/nmrih-better-tools

    Last edited by MsDysphie; 09-01-2021 at 08:34.
    MsDysphie is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 07-15-2021 , 04:24   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #2

    //SourceMod Batch Compiler
    // by the SourceMod Dev Team


    //// nmrih-bettertools.sp
    //
    // bettertools/serverside_inferno.sp(64) : error 092: number of arguments does not match definition
    // E:\nmrih1\nmrih\addons\sourcemod\scripting\nm rih-bettertools.sp(173) : warning 213: tag mismatch
    // E:\nmrih1\nmrih\addons\sourcemod\scripting\nm rih-bettertools.sp(173) : warning 213: tag mismatch
    // E:\nmrih1\nmrih\addons\sourcemod\scripting\nm rih-bettertools.sp(411) : error 092: number of arguments does not match definition
    //
    // 2 Errors.
    //
    // Compilation Time: 0.19 sec
    // ----------------------------------------

    Press enter to exit ...


    ---------------------------------------------------------------------------------------------------

    // This file was auto-generated by SourceMod (v1.10.0.6502)
    // ConVars for plugin "nmrih-bettertools.smx"


    // Toggles extended barricade tool functionality
    // -
    // Default: "1"
    sm_barricade_tweaks "1"

    // Toggles extended fire extinguisher functionality
    // -
    // Default: "1"
    sm_extinguisher_tweaks "1"

    // 2.0
    // -
    // Default: "Seconds it takes the fire extinguisher to extinguish an entity"
    sm_extinguisher_use_time "Seconds it takes the fire extinguisher to extinguish an entity"


    // Zippo can ignite other players (abides by friendly fire and infection rules)
    // -
    // Default: "0"
    sm_zippo_ignites_humans "0"

    // Zippo can ignite breakable wooden props and explosives
    // -
    // Default: "1"
    sm_zippo_ignites_props "1"

    // Zippo can ignite zombies
    // -
    // Default: "1"
    sm_zippo_ignites_zombies "1"

    // Toggles extended zippo functionality
    // -
    // Default: "1"
    sm_zippo_tweaks "1"

    // 2.0
    // -
    // Default: "Seconds it takes the zippo to ignite an entity"
    sm_zippo_use_time "Seconds it takes the zippo to ignite an entity"
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 07-15-2021 at 14:04.
    phoenix0001 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 07-15-2021 , 09:30   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #3

    zippo (Not installed)
    https://forums.alliedmods.net/showthread.php?t=319626


    Place barricades anywhere(Already installed)
    https://forums.alliedmods.net/showthread.php?p=2594767

    Fire Extinguisher Spray Paint(Already installed)
    https://forums.alliedmods.net/showthread.php?p=2751506

    Problems found so far
    The fire extinguisher cannot extinguish the fire

    The lighter can't ignite the board
    Cannot ignite NPC

    Recollect healthy boards from barricades by hitting them with the barricade tool
    Cannot recycle wood
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 07-15-2021 at 14:04.
    phoenix0001 is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 07-15-2021 , 19:43   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #4

    Thanks for the feedback! You need to compile using Sourcemod 1.11 to not get errors.

    Quote:
    The fire extinguisher cannot extinguish the fire
    Cannot ignite NPC
    I've shipped a fix for this (0.1.2). It's likely caused by those 2 convars having their value and description flipped.

    After updating you'll need to edit cfg/sourcemod/plugin.nmrih-bettertools.cfg and set sm_extinguisher_use_time and sm_zippo_use_time to valid numerical values

    Quote:
    Cannot recycle wood
    Do you have Quality of Life installed?
    When Quality of Life is installed, Better Tools won't attempt to recollect boards so as to avoid duplication, as both plugins implement similar features.
    Also boards can only be recovered if they haven't been damaged prior.

    Last edited by MsDysphie; 07-15-2021 at 20:53.
    MsDysphie is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 07-16-2021 , 04:31   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #5

    The latest version has been installed
    mmsource-1.12.0-git1149-windows
    sourcemod-1.11.0-git6713-windows


    // This file was auto-generated by SourceMod (v1.11.0.6713)
    // ConVars for plugin "nmrih-bettertools.smx"


    // -
    // -
    // Default: "1"
    sm_barricade_tweaks "1"

    // -
    // -
    // Default: "1"
    sm_extinguisher_tweaks "1"

    // -
    // -
    // Default: "2.0"
    sm_extinguisher_use_time "2.0"

    // -
    // -
    // Default: "1"
    sm_zippo_ignites_humans "1"

    // -
    // -
    // Default: "1"
    sm_zippo_ignites_props "1"

    // -
    // -
    // Default: "1"
    sm_zippo_ignites_zombies "1"

    // -
    // -
    // Default: "1"
    sm_zippo_tweaks "1"

    // -
    // -
    // Default: "2.0"
    sm_zippo_use_time "0.0"



    ------------------------------------------------------------------------------------------

    zippo (Not installed)
    https://forums.alliedmods.net/showthread.php?t=319626

    Quality of Life (Not installed)
    https://github.com/dysphie/nmrih-qol-ex
    https://forums.alliedmods.net/showthread.php?p=2573434

    Place barricades anywhere(Already installed)
    https://forums.alliedmods.net/showthread.php?p=2594767

    Fire Extinguisher Spray Paint(Already installed)
    https://forums.alliedmods.net/showthread.php?p=2751506

    Problems found so far
    The fire extinguisher cannot extinguish the fire

    The lighter can't ignite the board
    Cannot ignite NPC

    Wooden boards cannot be recycled if they are nailed to the wall.
    Wooden boards are nailed to the door before they can be recycled.
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 07-16-2021 at 11:06.
    phoenix0001 is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 07-17-2021 , 09:10   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #6

    Quote:
    Originally Posted by phoenix0001 View Post
    The fire extinguisher cannot extinguish the fire
    The lighter can't ignite the board
    Wooden boards cannot be recycled if they are nailed to the wall
    Cannot ignite NPC
    Wooden boards are nailed to the door before they can be recycled.
    I cannot replicate any of these, could you post some specific examples?
    MsDysphie is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 07-17-2021 , 12:52   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #7

    Quote:
    Originally Posted by MsDysphie View Post
    I cannot replicate any of these, could you post some specific examples?

    Molotov fires invalid
    Burning props The lighter does not ignite and cannot be tested
    Burning NPCs The lighter does not ignite and cannot be tested
    Burning players The lighter does not ignite and cannot be tested


    Recollect healthy boards from barricades by hitting them with the barricade tool
    In some maps, wooden boards are nailed to the wall and cannot be recycled



    Explosive props Normal use
    Wooden breakables Can ignite wooden boxes, but cannot ignite wooden boards
    NPCs invalid
    Other players invalid

    Video
    http://4808804.cn/nmrih/1.mp4
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 07-17-2021 at 13:01.
    phoenix0001 is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 07-17-2021 , 13:49   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #8

    Thanks for the video! Here's a few notes:

    - The barricade boards aren't actually marked as "wood" by the game, so the plugin has no way of knowing they're flammable. I might expand the definition to include specific models but there's no real solution to this. Some items will look like wood, but not actually be wood.

    - The NPCs you tried to ignite aren't actually NPCs, they're just props with idle sequences attached to them. Are you able to ignite zombies?

    - The molotov particle position is inaccurate at times. That means the actual fire entity (invisible) is a few feet away from the particle. Aiming the extinguisher at the particle doesn't extinguish the fire, aiming at the fire entity does. I might change this so it also works the other way around, because it's confusing.

    - The player not igniting might be caused by mp_friendlyfire being 0 or the player not being infected

    - The barricades seemed to be working as intended until they were shot. You cannot recover barricades that have been damaged
    MsDysphie is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 07-18-2021 , 00:10   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #9

    Quote:
    Originally Posted by MsDysphie View Post
    Thanks for the video! Here's a few notes:

    - The barricade boards aren't actually marked as "wood" by the game, so the plugin has no way of knowing they're flammable. I might expand the definition to include specific models but there's no real solution to this. Some items will look like wood, but not actually be wood.

    - The NPCs you tried to ignite aren't actually NPCs, they're just props with idle sequences attached to them. Are you able to ignite zombies?

    - The molotov particle position is inaccurate at times. That means the actual fire entity (invisible) is a few feet away from the particle. Aiming the extinguisher at the particle doesn't extinguish the fire, aiming at the fire entity does. I might change this so it also works the other way around, because it's confusing.

    - The player not igniting might be caused by mp_friendlyfire being 0 or the player not being infected

    - The barricades seemed to be working as intended until they were shot. You cannot recover barricades that have been damaged

    zippo
    https://forums.alliedmods.net/showthread.php?t=319626

    Everything is normal with this lighter, everything can be ignited.
    Why don't you keep using this lighter?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 07-18-2021 at 00:15.
    phoenix0001 is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 07-18-2021 , 13:31   Re: [NMRiH] Better Tools (Extends zippo, extinguisher, barricades)
    Reply With Quote #10

    Quote:
    Originally Posted by phoenix0001 View Post
    zippo
    https://forums.alliedmods.net/showthread.php?t=319626

    Everything is normal with this lighter, everything can be ignited.
    Why don't you keep using this lighter?
    Because I don't want it to ignite absolutely everything. This is supposed to be more vanilla-friendly version of that plugin

    Last edited by MsDysphie; 07-18-2021 at 13:38.
    MsDysphie 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 04:45.


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