[Theory] - Player Inv. Flags given through weapons.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
KCMGAW
Posts: 28
Joined: Tue Aug 28, 2007 5:32 pm
Contact:

[Theory] - Player Inv. Flags given through weapons.

Post by KCMGAW »

I'm working on two mods - one single player, another multi-player. This question applies to the latter.

I notice one gripe I found when testing the MP mod in the past was someone and myself wanted different sprites based on the particular weapon or ability they were using.

Since the mod is more cartoony, the player pawns whip the weapon out of "hammerspace" if you will. Basically they don't walk around with the weapon, merely it shows up in their hands when they use it (as in, when they are attacking).

My problem is not the sprite designing itself - either editing from a base or from scratch in Flash or Photoshop. It's the coding. My current method isn't working well.

The theory is when a player selects a certain weapon, the player is given an inventory "flag", if you will, that basically indicates they are holding, in this case SSBFUsingGun1. The name is generic so I can reuse it across the various classes. The problem is it's not rendering the correct sprites, it's showing the "failsafe" Missile or Melee. At least as far as I can tell, testing this has been difficult with me alone.

Allow me to show some example code. Keep in mind my mods aren't typical ZDoom/Skulltag fare :P
Spoiler:
Yeah. I'm having a hard time, although It's not of urgency to fix this. This isn't "necessary" except for aesthetic purposes.

I might make a project topic soon, but I post this here because in general I've had trouble with giving inventory flags to the player through weapons, and I figure if I solve this, it could benefit others.

Thanks in advance.
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: [Theory] - Player Inv. Flags given through weapons.

Post by amv2k9 »

I wouldn't know how to solve your problem, but this guy might. He seems to be doing something similar to what you want to do, though in a different manner.

Doom Biohazard Thread
Locked

Return to “Editing (Archive)”