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

[TF2] Health Kits/Ammo Packs Model Lock!


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Plugin ID:
5177
Plugin Version:
Plugin Category:
All
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Old 05-05-2016 , 10:59   [TF2] Health Kits/Ammo Packs Model Lock!
    Reply With Quote #1

    [TF2] Health Kits/Ammo Packs Model Lock!

    Decription:
    -This plugin was originaly private, but after a scripting request, and how useful it could be for all servers I decided to make it public.
    -This plugin blocks healkits and ammo packs from changing their models through different vision/gamemode.

    Changelog:
    Spoiler

    Installation:
    -Just drag and drop the .smx file into your plugins folder.

    Total old download: 159
    Attached Files
    File Type: sp Get Plugin or Get Source (healthkitsammopack_modellock.sp - 334 views - 1.6 KB)
    File Type: smx healthkitsammopack_modellock.smx (4.3 KB, 347 views)
    __________________

    Last edited by Benoist3012; 05-17-2017 at 14:33.
    Benoist3012 is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 05-05-2016 , 15:29   Re: [TF2] Health Kits/Ammo Packs Model Lock!
    Reply With Quote #2

    Nice plugin, now i know how override the models.

    Also you can do this

    FindEntityByClassname(healthammokit, "item_healthkit_*"))

    to save a couple of lines.
    __________________
    Chaosxk is offline
    Blinx
    Senior Member
    Join Date: Oct 2013
    Old 05-05-2016 , 16:24   Re: [TF2] Health Kits/Ammo Packs Model Lock!
    Reply With Quote #3

    Kudos for finding a way, my plugin was hooking OnEntityCreated, which only happens once per map, so it'll have slightly less overhead but that'll barely matter.
    Blinx is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 05-10-2016 , 17:48   Re: [TF2] Health Kits/Ammo Packs Model Lock!
    Reply With Quote #4

    Did you know that TF2 has a "powerup_model" KeyValue on all its ammo boxes and health kits explicitly so you can override the models on them?
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 05-10-2016 at 17:49.
    Powerlord is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 05-10-2016 , 20:13   Re: [TF2] Health Kits/Ammo Packs Model Lock!
    Reply With Quote #5

    Quote:
    Originally Posted by Powerlord View Post
    Did you know that TF2 has a "powerup_model" KeyValue on all its ammo boxes and health kits explicitly so you can override the models on them?
    From the last time i tested this, it didn't override the Halloween models.
    __________________
    Chaosxk is offline
    Benoist3012
    Veteran Member
    Join Date: Mar 2014
    Location: CWave::ForceFinish()
    Old 05-17-2017 , 14:32   Re: [TF2] Health Kits/Ammo Packs Model Lock!
    Reply With Quote #6

    Update, version 0.0.2 released.
    Changelog:
    -Improved model locking code.
    __________________
    Benoist3012 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 12:41.


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