AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:GO] First Person View Models Interface (with World Models) [Updated 26-Jan-2021] (https://forums.alliedmods.net/showthread.php?t=276697)

Franc1sco 12-26-2015 13:30

[CS:GO] First Person View Models Interface (with World Models) [Updated 26-Jan-2021]
 
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.
 * @noreturn
 */
native void 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
 * @noreturn
 */
native void 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
 * @noreturn
 */
native void 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
 * @noreturn
 */
native void 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 weaponworld_index    The weapon precached index with the view model. -1 = default model
 * @param dropmodel             The weapon drop model
 * @noreturn
 */
native void 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
 * @noreturn
 */
native void FPVMI_RemoveViewModelToClient(int clientchar[] weapon);

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

/**
 * Remove a custom drop model to a weapon
 *
 * @param client     Player for check
 * @String weapon     Weapon to replace
 * @noreturn
 */
native void 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
 * @noreturn
 */
forward void FPVMI_OnClientViewModel(int client, const char[] weaponint weapon_index);

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

/**
 * Called when a drop model has been set.
 *
 * @param client            Client.
 * @String weapon     Weapon
 * @String dropmodel     The weapon dropmodel
 * @noreturn
 */
forward void FPVMI_OnClientDropModel(int client, const char[] weaponchar[] 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

Franc1sco 12-26-2015 13:31

Re: [ANY] First Person View Models Interface
 
** 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:

See here

Franc1sco 12-26-2015 14:10

Re: [ANY] First Person View Models Interface
 
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

rogeraabbccdd 12-26-2015 17:35

Re: [ANY] First Person View Models Interface
 
Nice.
Now I can use custom weapons from gamebanana in my server.

Lannister 12-26-2015 17:38

Re: [ANY] First Person View Models Interface
 
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 :D

Keep up the good work!

rogeraabbccdd 12-26-2015 17:39

Re: [ANY] First Person View Models Interface
 
Is this plugin against valve's rule?

skinheadxtreme 12-26-2015 18:07

Re: [ANY] First Person View Models Interface
 
Quote:

Originally Posted by rogeraabbccdd (Post 2376608)
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

Lannister 12-26-2015 18:11

Re: [ANY] First Person View Models Interface
 
Quote:

Originally Posted by skinheadxtreme (Post 2376615)
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?

Franc1sco 12-26-2015 18:31

Re: [ANY] First Person View Models Interface
 
Quote:

Originally Posted by Lannister (Post 2376607)
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 (Post 2376607)
Also i would love to see modelers here making some cool guns for Zombie mod, like the ones from CS Zombies :D

I hope the same

Quote:

Originally Posted by rogeraabbccdd (Post 2376608)
Is this plugin against valve's rule?

Good question

sneaK 12-26-2015 19:08

Re: [ANY] First Person View Models Interface
 
Quote:

Originally Posted by rogeraabbccdd (Post 2376608)
Is this plugin against valve's rule?

Quote:

Originally Posted by skinheadxtreme (Post 2376615)
I was wondering about the same for what i remmember they said that you could not have custom skins

Quote:

Originally Posted by Lannister (Post 2376617)
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?


All times are GMT -4. The time now is 07:50.

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