Is it possible to change player sprite?
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.
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.
Is it possible to change player sprite?
OK so I'm making this mod maybe and I was thinking it would be nice if when the player is holding different weapons that his sprite would change. It would be pretty nice for when he's looking in the mirror to see the actual weapon he's holding...
Heh on another side note, is it possible to have the AI not shoot when allies are in the way?
These are questions to which I can't find answers and never saw it done in any Zdoom map.
Heh on another side note, is it possible to have the AI not shoot when allies are in the way?
These are questions to which I can't find answers and never saw it done in any Zdoom map.
Re: Is it possible to change player sprite?
Nice weapons idea. I'm interested on seeing an answer to this as well 

Re: Is it possible to change player sprite?
I think that it's possible to do that with A_GiveInventory 

Re: Is it possible to change player sprite?
Sorry for doublepost,but here's example for player sprite switching.
It had some bugs that I don't understand and I can't fix them.
http://www.sendspace.com/file/u866d2
It had some bugs that I don't understand and I can't fix them.

http://www.sendspace.com/file/u866d2
Re: Is it possible to change player sprite?
You now have morphing items. You can make a separate class for each player, each with the desire sprite set for the weapon, and give a "morph" item wehn the weapon is selected. I Think this will work.
Re: Is it possible to change player sprite?
Hmm OK.
So whenever the player selects a different gun change his class? I'll see what I can do and check out that buggy example...
Any ideas on having AI not shoot allies? I'm thinking of trying to make a shooter that's a little more realistic where allies aren't gonna kill each other on accident. Monster infighting is cool with zombies and demons but just doesn't make sense with like soldiers and stuff.
So whenever the player selects a different gun change his class? I'll see what I can do and check out that buggy example...
Any ideas on having AI not shoot allies? I'm thinking of trying to make a shooter that's a little more realistic where allies aren't gonna kill each other on accident. Monster infighting is cool with zombies and demons but just doesn't make sense with like soldiers and stuff.
Re: Is it possible to change player sprite?
I guess it is possible.
So I making Example for my mod.
I can't sure it is work, But maybe it is working... (I Said "I can't sure it is work")
So I making Example for my mod.
I can't sure it is work, But maybe it is working... (I Said "I can't sure it is work")
- The Unmaker
- Posts: 139
- Joined: Sun Mar 30, 2008 3:15 am
- Location: Pete's World :D
Re: Is it possible to change player sprite?
Something in decorate, probably +NOINFIGHTINGPotnop wrote:Hmm OK.
So whenever the player selects a different gun change his class? I'll see what I can do and check out that buggy example...
Any ideas on having AI not shoot allies? I'm thinking of trying to make a shooter that's a little more realistic where allies aren't gonna kill each other on accident. Monster infighting is cool with zombies and demons but just doesn't make sense with like soldiers and stuff.
Re: Is it possible to change player sprite?
How is that buggy?Mr.Green wrote:It had some bugs that I don't understand and I can't fix them.![]()

Re: Is it possible to change player sprite?
Look the player in chasecam mode.Sinfis wrote:How is that buggy?Mr.Green wrote:It had some bugs that I don't understand and I can't fix them.![]()
That seem to work just fine to me.
You can see that with the shotgun the player stop see state in few seconds when moving.

Re: Is it possible to change player sprite?
Oh, I see.Mr.Green wrote: Look the player in chasecam mode.
You can see that with the shotgun the player stop see state in few seconds when moving.

But changing the sprite with morphing would work, at least in theory.

Have anyone tried it?
Re: Is it possible to change player sprite?
I think somebody is working on a mod that does that. But if you need sprites there's my Helper Marine wad with all the classic doom weapon's in his hands.
But yeah, I've thought about the player morphing myself. I haven't tried it myself, but it'd probably work.
But yeah, I've thought about the player morphing myself. I haven't tried it myself, but it'd probably work.
- jessethedizzydragon
- Posts: 3
- Joined: Wed Apr 08, 2009 9:34 am
- Contact:
Re: Is it possible to change player sprite?
I have the same problem too. I made the players hands different, but kept the same guns. I like to know if i can change the doom player into my self. I have a toy story rex costume and took my hands and inserted them into the pictures so it looks like I'm holding the weapons. i took different costumes and stuck the hands on the weapons. the main weapons I use is my fist,pistol, shot gun and double barrel shot gun. if some one can help me get these sprites into doom and doom 2 it would be helpful
thanks

- jessethedizzydragon
- Posts: 3
- Joined: Wed Apr 08, 2009 9:34 am
- Contact:
Re: Is it possible to change player sprite?
well i hope to find this mod. i'm not a professional of making sprites but if i can get that mod it would help. I may need the sprite for the plasma gun not the bfg that other gun. i might need that one thanks 

Re: Is it possible to change player sprite?
Omg, I did it!!! 
I checked that buggy PlarSpriteSwitch.wad and got it work changing the player sprite.

I checked that buggy PlarSpriteSwitch.wad and got it work changing the player sprite.
Code: Select all
Spawn:
//Here A_JumpIfInventory for a PistolThing, so it goes straight to PLA2-sprites when the game starts.
PLA3 A 10
PLA2 A 0 A_JumpIfInventory ("ShotgunThing",1,2)
PLA2 A 10
Goto Spawn+1
PLA3 A 0
Goto Spawn
See:
PLA2 A 0 A_JumpIfInventory ("ShotgunThing",1,5)
PLA2 ABCD 4
Goto Spawn+1
PLA3 ABCD 4
Goto Spawn