Jump to content

Dayz New weapons


stefutz101

Recommended Posts

Posted

Similar question asked a bit ago, only thing I can think of is it load a different txd / dff file if a person is in range of the gun. But that would replace all guns in range, other then that I'm not sure unless you were to attach a custom model to the persons hand when the gun is out and replacing the original gun with an invisible model, finding the object of the gun that the person is holding is near impossible, from what I know.

Posted

All you can do here is attaching some interior models (ex: a TV) to M4 and make M4 alpha 0 and then replace M4 skin with that custom model you made earlier and voila.

Edit: Also give some advice here.

Posted
This can be achieved using
engineApplyShaderToWorldTexture 

You can check the "UV scripted" resource to see how its done.

This will only work client side he also need server side and my idea fits perfectly. I am also using it.

Posted

I do not understand.

So i must change m4 id with an interior id like ... tv , pc , clothings etc ? And put a m4 skin on it ? Example please ? ... Or try to explain it step by step ...

Posted
I do not understand.

So i must change m4 id with an interior id like ... tv , pc , clothings etc ? And put a m4 skin on it ? Example please ? ... Or try to explain it step by step ...

Yes that's what you must do. Already give'd a example here.

Posted

If i replace m4 id ( 31 ) to another one i have errors in debugscript when i'm trying to equip weapon .

(bad arg "giveweapon"[expected weapon-type at argument 2, got number "1208"). So yah i want to change m4 id ( 31 ) in 1208 ( a washing machine ) .

Ok .

So for replace model i know how :

--m4     
    txd = engineLoadTXD ( "weapons/m4.txd" ) 
    engineImportTXD ( txd, 1208 )     
    dff = engineLoadDFF ( "weapons/m4.dff", 1208 ) 
    engineReplaceModel ( dff, 1208 ) 

But i dont know where i must change the m4 id ... .

Pickups.lua

M4 Test",356,1,90,2.4}, 
 

Here ?

Posted
So i must replace that 356(all from all gamemode) with another id and put skin on that id ?

yup but is a bit more complicated

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...