Jump to content

Creating new weapons


Xwad

Recommended Posts

Posted

With the current version of MTA, no, you can only replace models - you can not add any. You'd have to wait for MTA Eir to be able to do that.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

@Dealman , Can you tell me what is MTA Eir? never heard that.

@Xward , use the following functions if you want to replace some existing weapons models.

engineLoadTXD 
engineImportTXD 
engineLoadDFF 
engineReplaceModel 

Also , it's possible to create weapons , but they can't be used by players ( as i know )

createWeapon 

A unique GangWar gamemode waiting for you!
Click here for more information.

560x95_FFFFFF_FF9900_000000_000000.png

Posted

Do you mean to dual-wield MP5 like you can with the pistols and Tec9?

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

no i mean that on my server there are to teams. team 1 has the mp5 weapon and the team2 has the tec9. My problem is that the tec9 weapon has another catch (there is an image link above). And i want to change the tec9 catche to mp5 weapon catch,hilt.

Posted

No, you just need to follow these steps.

1. Get the texture name

2. Get the original texture and edit it

3. dxCreateTexture + dxSetShaderValue

I think these were they

Posted
You can make new weapons using shaders.

How in the hell do you make a new weapon using an existing original texture?

By using shaders in that way you could only modify the existing weapon's texture(look) but not create/make a completely new weapon

Posted

listen its not important to create a new weapon. I jst want to change the tec9 catch to mp5 catch. Is it possible with script or animation or with everything else?

Posted

Sorry, but I really do not understand what you mean with "catch". Do you mean the stance when firing it?

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Not too sure, haven't been working with weapons before - but you could check out and play around with setWeaponProperty.

Looking at it, I would assume that the flag "flag_aim_arm" is what you want.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Is it so good? i Thing i have do something wrong xD

  
setWeaponProperty(32, "pro", "flags", 0x000002) 
setWeaponProperty(32, "pro", "maximum_clip_ammo", 20) 
  

Posted

Well, I would think it would need to be like this;

setWeaponProperty(32, "poor", "flags", "flag_aim_arm") 

But unfortunately it does not work. :roll:

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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