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

[TF2] properanims


Post New Thread Reply   
 
Thread Tools Display Modes
Author
arthurdead
Senior Member
Join Date: Jul 2013
Plugin ID:
7521
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-28-2021 , 08:57   [TF2] properanims
    Reply With Quote #1

    changes the thirdperson animation of the player to match the class of the weapon they are currently holding
    so if you are a medic and grab a minigun your thirdperson anim will change to heavy

    you NEED my playermodel api:
    https://forums.alliedmods.net/showthread.php?t=330948

    and TFEconData:
    https://github.com/nosoop/SM-TFEconData

    plugin:
    https://github.com/arthurdead/sm-plu...properanims.sp

    Last edited by arthurdead; 03-01-2021 at 13:35.
    arthurdead is offline
    XGAK
    Junior Member
    Join Date: May 2018
    Old 03-01-2021 , 09:36   Re: [TF2] properanims
    Reply With Quote #2

    Nice plugin.
    But player's custom model will be replaced by the default class model on changing weapon.
    XGAK is offline
    arthurdead
    Senior Member
    Join Date: Jul 2013
    Old 03-01-2021 , 10:05   Re: [TF2] properanims
    Reply With Quote #3

    Quote:
    Originally Posted by XGAK View Post
    Nice plugin.
    But player's custom model will be replaced by the default class model on changing weapon.
    yea you cant set the animation without setting the custom model if you want to use a custom animation along with a custom model you need to use the playermodel api
    arthurdead is offline
    martellus
    Member
    Join Date: Jan 2013
    Old 08-05-2021 , 19:55   Re: [TF2] properanims
    Reply With Quote #4

    What am I doing wrong here? I am attempting to compile this plugin and dependencies, but keep getting errors despite getting all the inc files.

    Code:
    // E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\properanims.sp(173) : warning 219: local variable "class" shadows a variable at a preceding level
    // E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\properanims.sp(183) : error 017: undefined symbol "GetModelForClass"
    // E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\properanims.sp(183) : error 092: number of arguments does not match definition
    //
    // 2 Errors.
    Similarly I have collected all the inc files for the playermodel api plugin and I just get this:

    Code:
    E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\playermodel.sp(52) : fatal error 194: user error:
    martellus is offline
    arthurdead
    Senior Member
    Join Date: Jul 2013
    Old 08-05-2021 , 23:01   Re: [TF2] properanims
    Reply With Quote #5

    Quote:
    Originally Posted by martellus View Post
    What am I doing wrong here? I am attempting to compile this plugin and dependencies, but keep getting errors despite getting all the inc files.

    Code:
    // E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\properanims.sp(173) : warning 219: local variable "class" shadows a variable at a preceding level
    // E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\properanims.sp(183) : error 017: undefined symbol "GetModelForClass"
    // E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\properanims.sp(183) : error 092: number of arguments does not match definition
    //
    // 2 Errors.
    Similarly I have collected all the inc files for the playermodel api plugin and I just get this:

    Code:
    E:\Program Files(x86)\Steam\steamapps\common\Team Fortress 2\tf\addons\sourcemod\scripting\playermodel.sp(52) : fatal error 194: user error:
    call spcomp with GAME_TF2=1
    arthurdead is offline
    martellus
    Member
    Join Date: Jan 2013
    Old 08-06-2021 , 19:01   Re: [TF2] properanims
    Reply With Quote #6

    Do I need to put that in the start of the SP files, or is that an argument for compiling somehow? Not too familiar with all this, sorry
    martellus is offline
    arthurdead
    Senior Member
    Join Date: Jul 2013
    Old 08-07-2021 , 00:20   Re: [TF2] properanims
    Reply With Quote #7

    Quote:
    Originally Posted by martellus View Post
    Do I need to put that in the start of the SP files, or is that an argument for compiling somehow? Not too familiar with all this, sorry
    spcomp.exe properanims.sp GAME_TF2=1
    spcomp.exe playermodel.sp GAME_TF2=1
    arthurdead is offline
    Bites
    Junior Member
    Join Date: Jun 2010
    Old 08-07-2021 , 05:21   Re: [TF2] properanims
    Reply With Quote #8

    I'm having this error occur when loading one of the required extensions:
    [2021-08-07 05:18:08]: L 08/07/2021 - 09:18:08: [SM] Unable to load extension "animhelpers.ext": /lib/i386-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/container/tf/addons/sourcemod/extensions/animhelpers.ext.2.tf2.so)
    I don't have access to the server box to install this dependency.. Is there anything I can do to remedy this?

    Last edited by Bites; 08-07-2021 at 05:22.
    Bites is offline
    martellus
    Member
    Join Date: Jan 2013
    Old 08-09-2021 , 15:49   Re: [TF2] properanims
    Reply With Quote #9

    Thank you, I got the properanims plugin compiled, but the playermodel one still throws an error? Sorry to bother:

    Code:
    playermodel.sp(254) : error 100: function prototypes do not match
    playermodel.sp(255) : error 100: function prototypes do not match
    playermodel.sp(1118) : error 092: number of arguments does not match definition
    playermodel.sp(1084) : warning 203: symbol is never used: "SetEntityAlpha"
    playermodel.sp(1074) : warning 203: symbol is never used: "GetEntityAlpha"
    playermodel.sp(55) : warning 203: symbol is never used: "OnPropTransmit"
    
    3 Errors.
    martellus is offline
    Bites
    Junior Member
    Join Date: Jun 2010
    Old 11-26-2021 , 06:42   Re: [TF2] properanims
    Reply With Quote #10

    Quote:
    Originally Posted by Bites View Post
    I'm having this error occur when loading one of the required extensions:
    [2021-08-07 05:18:08]: L 08/07/2021 - 09:18:08: [SM] Unable to load extension "animhelpers.ext": /lib/i386-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/container/tf/addons/sourcemod/extensions/animhelpers.ext.2.tf2.so)
    I don't have access to the server box to install this dependency.. Is there anything I can do to remedy this?
    Bump. I'm not sure how to get this working.
    Bites 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 08:42.


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