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

[PVK2] Parrot Crash Fix [v1.0.0 | 10-April-2022] DEPRECATED - HOTFIX


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8025
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Pirates, Vikings, & Knights
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes a server crash when a npc_parrot/npc_vulture entity is created without an owner and kills someone
    Unapprover:
    Reason for Unapproving:
    Unapproved as requested by author since it is no longer needed
    Old 04-10-2022 , 18:01   [PVK2] Parrot Crash Fix [v1.0.0 | 10-April-2022] DEPRECATED - HOTFIX
    Reply With Quote #1

    PVK2 ONLY

    DEPRECATED - Plugin no longer needed - Fixed in 16-December-2023 update (v0.5.1.0)

    Description

    Fixes a server crash when a npc_parrot/npc_vulture entity is created without an owner and kills someone.

    This plugin sets on spawn, the owner to "worldspawn" entity (0), only when there is no owner related to the entity (-1).

    How to reproduce
    • Use "ent_create npc_parrot" or "ent_create npc_vulture" in console (with sv_cheats 1), wait until it kills someone, server will CRASH.

    Features
    • Allow enabling/disabling the plugin.
    • Allow setting a debug cvar to print to chat the owner values during entity spawn.

    Cvars

    A configuration file named "pvk2_parrot_crash_fix.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Output to chat info about the parrot/vulture owner.
    // 0 = Debug OFF, 1 = Debug ON.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    pvk2_parrot_crash_fix_debug "0"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    pvk2_parrot_crash_fix_enable "1" 
    Admin Commands
    • sm_setparrotowner => Set the parrot owner. Usage: sm_setparrotowner <parrot> <owner>. (z flag required)
    • sm_setvultureowner => Set the vulture owner. Usage: sm_setvultureowner <vulture> <owner>. (z flag required)
    • sm_print_cvars_pvk2_parrot_crash_fix => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "pvk2_parrot_crash_fix.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (pvk2_parrot_crash_fix.sp - 13 views - 14.8 KB)
    __________________

    Last edited by Marttt; 02-01-2024 at 16:16.
    Marttt is offline
    Jerem
    Junior Member
    Join Date: Oct 2020
    Location: France
    Old 08-27-2022 , 06:06   Re: [PVK2] Parrot Crash Fix [v1.0.0 | 10-April-2022]
    Reply With Quote #2

    Thanks man, now can spawn lot parrot again with crash
    Realy good plugin
    Jerem 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 17:55.


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