Jump to content

More than one TXD on a weapon model?


Recommended Posts

Hi, i want to have more than one TXD on weapon models, but if i import the TXD, i can only apply it to a weapon model. Can i apply it for example to a player's weapon? But not for all the same weapon, but only the player's? So i mean a player could have a colorful M4, but the others still have the default one if they did not buy a customization for it?

Edited by tommymaster
Link to comment
1 hour ago, Dimos7 said:

only with costum weapon yes shaders and image of the weapon you need and resource of bone attach as you need to make it fire when press fire etc amunation

no need for this

all you have is to hide the real weapon's model by using : engineSetModelLODDistance

and replace another world's objects with weapon models

and attach it to the player's hand with bone_attach script

and you will get a new weapon

i've already created this resource so if you need any help mention me

Link to comment
5 hours ago, #َxLysandeR said:

no need for this

all you have is to hide the real weapon's model by using : engineSetModelLODDistance

and replace another world's objects with weapon models

and attach it to the player's hand with bone_attach script

and you will get a new weapon

i've already created this resource so if you need any help mention me

okay, but if i put a model into my player's hand instead of a custom weapon, how would it shoot? or create a custom weapon too, but somehow set the alpha to 0? :) and how can i make the player aim?

Edited by tommymaster
Link to comment
6 hours ago, tommymaster said:

okay, but if i put a model into my player's hand instead of a custom weapon, how would it shoot? or create a custom weapon too, but somehow set the alpha to 0? :) and how can i make the player aim?

you can set the alpha to 0 by using : engineSetModelLODDistance

+ all you have is to attach the model to the player's hand and then it will be a normal weapon ( aim , shoot etc..)

+ you can change weapon properties by using setWeaponProperty

  • Like 1
Link to comment
On 2018. 08. 08. at 05:17, #َxLysandeR said:

you can set the alpha to 0 by using : engineSetModelLODDistance

+ all you have is to attach the model to the player's hand and then it will be a normal weapon ( aim , shoot etc..)

+ you can change weapon properties by using setWeaponProperty

So:

I create a custom weapon, and set it's alpha by engineSetModelLODDistance to 0,

Replace a model and texture (for example a house) with the weapon model, and texture, and attach the model with replaced texture and model, to the player's hand?

And can i disable its collision?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...