Is it possible to change player sprite?

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
Potnop
Posts: 106
Joined: Tue Dec 19, 2006 7:24 pm

Is it possible to change player sprite?

Post by Potnop »

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.
User avatar
adeon
Posts: 75
Joined: Tue Mar 03, 2009 7:33 am

Re: Is it possible to change player sprite?

Post by adeon »

Nice weapons idea. I'm interested on seeing an answer to this as well :3:
User avatar
Mr.Green
Posts: 518
Joined: Mon Jan 05, 2009 2:28 am
Location: Mexico

Re: Is it possible to change player sprite?

Post by Mr.Green »

I think that it's possible to do that with A_GiveInventory :o
User avatar
Mr.Green
Posts: 518
Joined: Mon Jan 05, 2009 2:28 am
Location: Mexico

Re: Is it possible to change player sprite?

Post by Mr.Green »

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. :oops:
http://www.sendspace.com/file/u866d2
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: Is it possible to change player sprite?

Post by Amuscaria »

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.
User avatar
Potnop
Posts: 106
Joined: Tue Dec 19, 2006 7:24 pm

Re: Is it possible to change player sprite?

Post by Potnop »

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.
rico345
Posts: 193
Joined: Mon Sep 08, 2008 5:24 am
Location: Gimhae City, Republic Of Korea

Re: Is it possible to change player sprite?

Post by rico345 »

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")
User avatar
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?

Post by The Unmaker »

Potnop 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.
Something in decorate, probably +NOINFIGHTING
Sinfis
Posts: 40
Joined: Thu Oct 02, 2008 3:51 am
Location: Oulu, Finland

Re: Is it possible to change player sprite?

Post by Sinfis »

Mr.Green wrote:It had some bugs that I don't understand and I can't fix them. :oops:
How is that buggy? :o That seem to work just fine to me.
User avatar
Mr.Green
Posts: 518
Joined: Mon Jan 05, 2009 2:28 am
Location: Mexico

Re: Is it possible to change player sprite?

Post by Mr.Green »

Sinfis wrote:
Mr.Green wrote:It had some bugs that I don't understand and I can't fix them. :oops:
How is that buggy? :o That seem to work just fine to me.
Look the player in chasecam mode.
You can see that with the shotgun the player stop see state in few seconds when moving. :oops:
Sinfis
Posts: 40
Joined: Thu Oct 02, 2008 3:51 am
Location: Oulu, Finland

Re: Is it possible to change player sprite?

Post by Sinfis »

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. :oops:
Oh, I see. :)
But changing the sprite with morphing would work, at least in theory. :D
Have anyone tried it?
User avatar
Xim
Posts: 2094
Joined: Fri Feb 20, 2009 2:46 pm
Location: somewhere with trees

Re: Is it possible to change player sprite?

Post by Xim »

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.
User avatar
jessethedizzydragon
Posts: 3
Joined: Wed Apr 08, 2009 9:34 am
Contact:

Re: Is it possible to change player sprite?

Post by jessethedizzydragon »

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 :D thanks
User avatar
jessethedizzydragon
Posts: 3
Joined: Wed Apr 08, 2009 9:34 am
Contact:

Re: Is it possible to change player sprite?

Post by jessethedizzydragon »

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 :D
Sinfis
Posts: 40
Joined: Thu Oct 02, 2008 3:51 am
Location: Oulu, Finland

Re: Is it possible to change player sprite?

Post by Sinfis »

Omg, I did it!!! 8-)

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
Locked

Return to “Editing (Archive)”