/////Code Here/////
Spoiler:
Spoiler:
Spoiler: codeSo in DECORATE we cannot use variables, we have to use dummy inventory items like PistolSupressor, which we give and take conditionally and perform actions based on them (A_JumpIfInventory).
Why do people code in DECORATE even though ZScript exists? Because we're comfortable with it. I am not a C-style programmer. I brute-forced my way to understanding DECORATE because I wanted to make mods and I had a good teacher to help me on the way. I'm only bringing up the fact that User Variables exist. Yes, they need to be defined on the PlayerPawn. This is fine and is a perfectly acceptable alternative to using CustomInventory actors. Weapons can modify the PlayerPawn's variable. If it's something as simple as checking to see if a weapon is suppressed, I'd be fine with using User Variables - and we should encourage others to broaden their horizons beyond making even more CustomInventory actors where as a User Var can fill in to simply ask "Hey, do I jump to this state if my weapon is suppressed?" The rest of your code, I see no problems with.DECORATE right now is a deprecated feature set and anyone who looks to use it is ushered to the "How to ZScript" pages.
Only if it's going to actually have a silencer attached in its sprites.Hellser wrote: Now, some tips for the 1911 suppressing feature: Things get a little hairy when it comes to selecting and deselecting. You will have to account that the weapon will be suppressed or not suppressed. So there will be a lot of jumping around (Select.Suppressed/Select.UnSuppressed) states for an example. But it seems that you, Graaicko, have the basic concepts down so far. Don't hesitate to experiment. Broken code and headscratching is part of the fun.
Playing online is part of the fun, lol.Hellser wrote: Could this be simplier with ZScript? Sure. But he's using DECORATE. Let him have fun with it.
Neither am I. And btw, DECORATE is also C-styled, because otherwise we'd have semantic whitespace instead of curly braces. It borrows a lot more from C than what you realize, buddy.Hellser wrote: I am not a C-style programmer
Actually, we're using regular Inventory here. CustomInventory is not needed and should only be used in DECORATE. In ZScript, the idiosyncrasies make it not worth it over just overriding TryPickup().Hellser wrote: using CustomInventory actors
You said that, not me, lol. (Rachael quoted you, not me, lol) search.php?keywords=++++DECORATE+right+ ... sf=msgonlyHellser wrote: DECORATE right now is a deprecated feature set and anyone who looks to use it is ushered to the "How to ZScript" pages.