[ZS] A mixin that lets cycling between ammo types

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1122
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)

[ZS] A mixin that lets cycling between ammo types

Post by Jekyll Grim Payne »

This mixin will add a CycleAmmo() function to your weapon that ExtraAmmoTypes property that allows defining up to 5 ammo types. By calling CycleAmmo() you can change which ammo class the weapon uses (i.e. it's ammotype1 or ammotype2 values).

There are detailed comments in the code on how to use this.

Free to use, credits are appreciated.
You do not have the required permissions to view the files attached to this post.

Return to “Script Library”