Raised This Month: $89 Target: $400
 22% 

[CS:GO] First Person View Models Interface (with World Models support)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
4972
Plugin Version:
3.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A easy interface for developers for add custom view models to the weapons.
    Unapprover:
    Reason for Unapproving:
    http://blog.counter-strike.net/index.php/server_guidelines/
    Old 12-26-2015 , 13:30   [CS:GO] First Person View Models Interface (with World Models support)
    Reply With Quote #1

    This plugin is not against valve's rule if you obey this -> https://forums.alliedmods.net/showpo...44&postcount=8

    Demostration video:



    Description:

    A easy interface for developers for add custom view models to the weapons.


    Natives:

    PHP Code:
    /**
     * Add a custom view model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @param weaponview_index     The weapon precached index with the view model.
     * @return no return
     */
    native FPVMI_AddViewModelToClient(int clientchar[] weaponint weaponview_index=-1);

    /**
     * Add a custom world model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @param weaponwold_index    The weapon precached index with the view model. -1 = default model
     * @return no return
     */
    native FPVMI_AddWorldModelToClient(int clientchar[] weaponint weaponworld_index=-1);

    /**
     * Add a custom drop model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @String dropmodel    The weapon model
     * @return no return
     */
    native FPVMI_AddDropModelToClient(int clientchar[] weaponchar[] dropmodel="none");

    /**
     * Return the custom world model index of a client
     *
     * @param client     Player for check
     * @String weapon     Weapon to search
     * @return Return the custom world model index of a client. -1 if the client dont have a custom world model
     */
    native int FPVMI_GetClientWorldModel(int clientchar[] weapon);

    /**
     * Return the custom view model index of a client
     *
     * @param client     Player for check
     * @String weapon     Weapon to search
     * @return Return the custom wview model index of a client. -1 if the client dont have a custom view model
     */
    native int FPVMI_GetClientViewModel(int clientchar[] weapon);

    /**
     * Return the custom drop model index of a client
     *
     * @param client     Player for check
     * @String weapon     Weapon to search
     * @String drop     copy the dropmodel string
     */
    native FPVMI_GetClientDropModel(int clientchar[] weaponchar[] dropmodel);

    /**
     * Set a custom view/world model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @param weapon_index     The weapon precached index with the view model. -1 = default model
     * @param weaponwold_index    The weapon precached index with the view model. -1 = default model
     * @return no return
     */
    native FPVMI_SetClientModel(int clientchar[] weaponint weaponview_index=-1int weaponworld_index=-1char[] dropmodel="none");

    /**
     * Remove a custom view model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @return no return
     */
    native FPVMI_RemoveViewModelToClient(int clientchar[] weapon);

    /**
     * Remove a custom world model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @return no return
     */
    native FPVMI_RemoveWorldModelToClient(int clientchar[] weapon);

    /**
     * Remove a custom drop model to a weapon
     *
     * @param client     Player for check
     * @String weapon     Weapon to replace
     * @return no return
     */
    native FPVMI_RemoveDropModelToClient(int clientchar[] weapon);

    /**
     * Called when a View model has been set.
     *
     * @param client            Client.
     * @String weapon     Weapon
     * @param weapon_index     The weapon precached index 
     */
    forward FPVMI_OnClientViewModel(client, const String:weapon[], weapon_index);

    /**
     * Called when a World model has been set.
     *
     * @param client            Client.
     * @String weapon     Weapon
     * @param weaponworld_index     The weapon precached index 
     */
    forward FPVMI_OnClientWorldModel(client, const String:weapon[], weaponworld_index);

    /**
     * Called when a drop model has been set.
     *
     * @param client            Client.
     * @String weapon     Weapon
     * @String dropmodel     The weapon dropmodel
     */
    forward FPVMI_OnClientDropModel(client, const String:weapon[], char[] dropmodel); 
    Example plugin:
    https://github.com/Franc1sco/fpvmi-s...ualintinity.sp


    You can get more view models here -> http://gamebanana.com

    Editing the models:
    https://forums.alliedmods.net/showpo...8&postcount=95


    Credits:

    Custom viewmodel snippet - https://forums.alliedmods.net/showthread.php?t=273885


    Donations (optional):

    If you apreciate my work, you can donate me via paypal or with a trade offer


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran SourceMod Coder -> Activity channel
    Taking paid requests -> Add me in TELEGRAM or STEAM
    or Discord Franc1sco#7876
    | You like my work? donate me


    Last edited by Franc1sco; 03-05-2016 at 06:10.
    Franc1sco is offline
    Send a message via MSN to Franc1sco Send a message via Skype™ to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 12-26-2015 , 13:31   Re: [ANY] First Person View Models Interface
    Reply With Quote #2

    ** Reserved for third-party plugins **


    [ANY] Custom Weapons Menu (very easy to configure)

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

    [CS:GO] Custom Knife Models

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

    Store Custom Weapon Models

    https://forums.alliedmods.net/showpo...0&postcount=80

    Dual infinity

    Screenshot:
    Spoiler

    See here
    __________________
    Veteran SourceMod Coder -> Activity channel
    Taking paid requests -> Add me in TELEGRAM or STEAM
    or Discord Franc1sco#7876
    | You like my work? donate me


    Last edited by Franc1sco; 12-31-2015 at 08:54.
    Franc1sco is offline
    Send a message via MSN to Franc1sco Send a message via Skype™ to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 12-26-2015 , 14:10   Re: [ANY] First Person View Models Interface
    Reply With Quote #3

    Ok tested and works!!!

    I added a plugin for set Dual infinity view models to everybody here https://github.com/Franc1sco/fpvmi-s...ualintinity.sp
    __________________
    Veteran SourceMod Coder -> Activity channel
    Taking paid requests -> Add me in TELEGRAM or STEAM
    or Discord Franc1sco#7876
    | You like my work? donate me


    Last edited by Franc1sco; 12-28-2015 at 07:02.
    Franc1sco is offline
    Send a message via MSN to Franc1sco Send a message via Skype™ to Franc1sco
    rogeraabbccdd
    Veteran Member
    Join Date: Jun 2015
    Location: de_dust2
    Old 12-26-2015 , 17:35   Re: [ANY] First Person View Models Interface
    Reply With Quote #4

    Nice.
    Now I can use custom weapons from gamebanana in my server.
    __________________

    My steam friend list is almost full, please use Discord instead.
    I seldom check my plugin threads, you can DM me on Discord.

    GitHub | Steam | WARMOD+ | Discord:Kento#2118
    rogeraabbccdd is offline
    Lannister
    Veteran Member
    Join Date: Apr 2015
    Old 12-26-2015 , 17:38   Re: [ANY] First Person View Models Interface
    Reply With Quote #5

    Nice plugin, finally you released it! i was wondering, you can use ANY model from the CS:GO section in Gamebanana?

    Also i would love to see modelers here making some cool guns for Zombie mod, like the ones from CS Zombies

    Keep up the good work!
    Lannister is offline
    rogeraabbccdd
    Veteran Member
    Join Date: Jun 2015
    Location: de_dust2
    Old 12-26-2015 , 17:39   Re: [ANY] First Person View Models Interface
    Reply With Quote #6

    Is this plugin against valve's rule?
    __________________

    My steam friend list is almost full, please use Discord instead.
    I seldom check my plugin threads, you can DM me on Discord.

    GitHub | Steam | WARMOD+ | Discord:Kento#2118
    rogeraabbccdd is offline
    skinheadxtreme
    AlliedModders Donor
    Join Date: Jul 2013
    Old 12-26-2015 , 18:07   Re: [ANY] First Person View Models Interface
    Reply With Quote #7

    Quote:
    Originally Posted by rogeraabbccdd View Post
    Is this plugin against valve's rule?
    I was wondering about the same for what i remmember they said that you could not have custom skins
    skinheadxtreme is offline
    Lannister
    Veteran Member
    Join Date: Apr 2015
    Old 12-26-2015 , 18:11   Re: [ANY] First Person View Models Interface
    Reply With Quote #8

    Quote:
    Originally Posted by skinheadxtreme View Post
    I was wondering about the same for what i remmember they said that you could not have custom skins
    But this actually is a whole custom model, not just a weapon skin, right?
    Lannister is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 12-26-2015 , 18:31   Re: [ANY] First Person View Models Interface
    Reply With Quote #9

    Quote:
    Originally Posted by Lannister View Post
    Nice plugin, finally you released it! i was wondering, you can use ANY model from the CS:GO section in Gamebanana?
    Yes if they have the correct animations


    Quote:
    Originally Posted by Lannister View Post
    Also i would love to see modelers here making some cool guns for Zombie mod, like the ones from CS Zombies
    I hope the same

    Quote:
    Originally Posted by rogeraabbccdd View Post
    Is this plugin against valve's rule?
    Good question
    __________________
    Veteran SourceMod Coder -> Activity channel
    Taking paid requests -> Add me in TELEGRAM or STEAM
    or Discord Franc1sco#7876
    | You like my work? donate me

    Franc1sco is offline
    Send a message via MSN to Franc1sco Send a message via Skype™ to Franc1sco
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 12-26-2015 , 19:08   Re: [ANY] First Person View Models Interface
    Reply With Quote #10

    Quote:
    Originally Posted by rogeraabbccdd View Post
    Is this plugin against valve's rule?
    Quote:
    Originally Posted by skinheadxtreme View Post
    I was wondering about the same for what i remmember they said that you could not have custom skins
    Quote:
    Originally Posted by Lannister View Post
    But this actually is a whole custom model, not just a weapon skin, right?
    I remember when that whole big email thread came out that they said custom (non-valve) models/skins are fine, I just can't find the email anymore maybe someone can help me find it. It's not spoofing inventory if you have something that's not in the vanilla game.

    Franc1sco, any chance we could get a menu system that would replace multiple variants of one weapon? For example, in your dualies plugin, say if I had multiple different sets of dualies models that I wanted to be able to choose from, how would I go about doing that?
    __________________
    sneaK 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 20:59.


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