Search found 3 matches

by genospizza
Sun Sep 24, 2023 10:35 pm
Forum: Scripting
Topic: Making custom weapons deplete ammo and make bullet hole decals
Replies: 4
Views: 762

Re: Making custom weapons deplete ammo and make bullet hole decals

I was still having the bullet decal issue, but I solved it now. Edited the OP with the solution.
by genospizza
Sun Sep 24, 2023 4:59 pm
Forum: Scripting
Topic: Making custom weapons deplete ammo and make bullet hole decals
Replies: 4
Views: 762

Re: Making custom weapons deplete ammo

Yeah, I just realized I was woefully misusing that inventory class. I adapted that from a similar example, but I think that was removing and not adding a weapon. The ammo immediately maxing out should have tipped me off. Thanks for the help!
by genospizza
Sun Sep 24, 2023 3:35 pm
Forum: Scripting
Topic: Making custom weapons deplete ammo and make bullet hole decals
Replies: 4
Views: 762

Making custom weapons deplete ammo and make bullet hole decals

EDIT: After using the solution in the replies, I was still having the decal issue. I've solved it now, so here's the fix for future Googlers: Create a file in the root of your mod called "decaldef.txt". In there you can add a definition that looks like this: generator TestWeapon BulletChip Replace ...

Go to advanced search