multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.35k stars 415 forks source link

General upgrade for weapons #656

Open CrosRoad95 opened 5 years ago

CrosRoad95 commented 5 years ago

Is your feature request related to a problem? Please describe. You need spent a lot of time to rewrite weapons system

Describe the solution you'd like

  1. make more weapons in mta, i saw in code that id's from ~60 do 255 are empty, there could be new empty weapons.
  2. make function for changing weapon slots, make possible hold m4, ak47 at once

Describe alternatives you've considered /

Additional context /

Einheit-101 commented 5 years ago
  1. extend setWeaponProperty so it works with more (all) weapon properties that are currently get-only
  2. add disable_model weapon flag to setWeaponProperty in order to disable model + muzzle effect of a certain player weapon
Einheit-101 commented 5 years ago

-Add a setting that makes it possible to keep a weapon even when its empty (currently weapons get deleted from the slot when empty)

CrosRoad95 commented 5 years ago

offset 0x60DB99 seems to be responsible for removing weapons while you have 0 ammo image

Einheit-101 commented 5 years ago

I would love to see this "fixed".

Elengar commented 5 years ago
  1. Make it possible to use setWeaponProperty for any discrete skill level number (not only for three {poor, std, pro}) or add function like setPlayerWeaponProperty, which will set property only for certain player.

This would be very helpful for adding custom weapons to MTA.

CrosRoad95 commented 5 years ago

I would love to see this "fixed".

i think, this could be fixed by adding function clientside like setPlayerCanHandleWeaponWithoutAmmoOrSomethingLikeThatWithShorterName( bool )

Einheit-101 commented 5 years ago

setPedWeaponAutoRemove() setPedKeepEmptyWeapons()

Allerek commented 2 years ago

i've already said somewhere, that we should add function like setGTAPatchEnabled for things like: -remove weapons at 0 ammo -coronas reflection on roads etc etc.