gta-chaos-mod / Trilogy-ASI-Script

The ASI script for the GTA Trilogy (SA only for now, 3 and VC may follow later on)
GNU General Public License v3.0
141 stars 21 forks source link

New effect: Increase weapon shooting rate #222

Closed gromchek closed 1 year ago

Lordmau5 commented 1 year ago

2 issues:

Lordmau5 commented 1 year ago

You can use the eModelID values for the array btw


static const std::array weaponsId
    = {MODEL_COLT45,  MODEL_SILENCED, MODEL_DESERT_EAGLE, MODEL_CHROMEGUN,
       MODEL_SAWNOFF, MODEL_SHOTGSPA, MODEL_MICRO_UZI,    MODEL_MP5LNG,
       MODEL_AK47,    MODEL_M4,       MODEL_TEC9};```
gromchek commented 1 year ago

The idea of the effect came when I was reading the weapons.dat config. So I quickly copied the ids and started coding. I also added OnTick function because the game resets the weapon info after loading the save file.