MrFixit exploit with batch and dismantle for ammo

Nirran

Vault Senior Citizen
Modder
add this code right after create_object_sid in both batch_item and undo_batch to set ammo to 0 on any weapon that is created or dismantled,gets rid of the exploit,requiers sfall

Code:
   if (obj_item_subtype(restock_obj) == 3) then 
      begin
         if (get_weapon_ammo_pid(restock_obj) > 0) then 
            begin
               set_weapon_ammo_count(restock_obj, 0);
            end
      end

edit : for some reason the forum is "cropping" my code posts today,wtf?

Nirran
 
Back
Top