Sarge
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Morphing issues
 
Author
All times are GMT. The time now is 03:04. Post New Thread    Post A Reply
MetroidJunkie
Junior Member


Posts: 122
Registered: 11-07


The idea is to allow the player to change among 9 classes anytime they want and with the weapons they hold changing to match the new class. It was suggested I use morphing so I made a custom weapon to serve as a communicator to call another class and, in the firing state, added;

ACS_Execute(901,0,0,0)


The ACS script itself is;


Script 901 (void)
{
MorphActor(0,"SecondPlayer",0,0,0);
TakeInventory("SecondClassCommunicator",1);
GiveInventory("FirstClassCommunicator",1);
}


It morphs but it seems to generate a new player ontop of the morph that I have to either kill by shooting or no clip out of. The class the player morphs into also can't use any weapons aside from the initial morphed weapon (So I can't have them switch to a communicator to morph them back into the original class or any other class) and morphing only appears to work once as I attempted to have switches to force the player to morph back to the first class or other classes.

Old Post 02-15-13 04:19 #
MetroidJunkie is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gggmork
If you can make any sense of this post, congratulations


Posts: 2801
Registered: 06-07


I just copied this from a very simple morph experiment I did long ago. Don't remember specifics like if decorate was used but maybe it might help.
2 walk over lines used "script execute" for script 1/2 respectively

code:
#include "zcommon.acs" script 1 (void) { unmorphactor(0,1); MorphActor(1337, "player01", "", 1048576, 0, "", ""); } script 2 (void) { unmorphactor(0,1); MorphActor(1337, "player02", "", 1048576, 0, "", ""); } Script 3 ENTER { Thing_ChangeTID(0,1337+PlayerNumber());//This assigns the TID }

Old Post 02-15-13 05:29 #
gggmork is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
MetroidJunkie
Junior Member


Posts: 122
Registered: 11-07


It didn't fix the problem, there's still a second player spawned on top that has to be killed from the inside or clipped through and only the morphed weapon can be used.

Old Post 02-15-13 06:06 #
MetroidJunkie is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gggmork
If you can make any sense of this post, congratulations


Posts: 2801
Registered: 06-07


This might not help, but this is my old wad of a very brief morph experiment before I knew much acs or decorate so stuff might be wrong (zdoom). But I mean it works- you walk over a line and morph into a smaller player class, walk over another and morph into the smallest (neither had weapons though). No problem where you morph on top of yourself or whatever that you have.
http://filesmelt.com/dl/morph.wad
You want it so when you shoot you morph? Like shoot once, morph to playerclass2, shoot again morph to playerclass 3, again to 4, etc all the way back to 1?

Old Post 02-15-13 07:10 #
gggmork is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
MetroidJunkie
Junior Member


Posts: 122
Registered: 11-07


Well, the custom weapon is meant to be specifically for the purpose of calling a different class whenever you choose to switch characters. It's meant so you can change to a different character ingame with their unique weapons. Is it possible to have more than one weapon with a morphed actor?

I took your WAD, modified it for the specifications of my mod, and it doesn't spawn a second player anymore and I can morph multiple times but it's still stuck to just one weapon. I guess, if I have to, I can just get rid of the custom weapon and make it a specific spot where you can change the character.

Old Post 02-15-13 07:27 #
MetroidJunkie is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gggmork
If you can make any sense of this post, congratulations


Posts: 2801
Registered: 06-07


Someone else can probably help better than me, but I was only able to get 1 gun working for a morphed player too.

I added this crap to decorate (from http://zdoom.org/wiki/Player_properties ):
code:
player.startitem "supershotgun" player.startitem "chaingun" player.startitem "plasmarifle" player.weaponslot 0, "plasmarifle" player.weaponslot 1, "supershotgun" player.weaponslot 2, "plasmarifle" player.weaponslot 3, "supershotgun" player.weaponslot 4, "plasmarifle" player.weaponslot 5, "supershotgun" player.weaponslot 6, "plasmarifle" player.weaponslot 7, "supershotgun" player.weaponslot 8, "plasmarifle" player.weaponslot 9, "supershotgun"


But the player has no start weapon nor can select weapons. Only player.morphweapon "chaingun" etc worked, but that's just 1 weapon when more were wanted.



EDIT: probably figured it out, have to give AMMO as start items too, duh!



EDIT: no, ammo wasn't it. Maybe try putting inventory functions in the states of the new decorate players.
http://zdoom.org/wiki/Action_functi...ntory_functions
Like put A_GiveInventory("plasmarifle", 3) in the spawn state of the player or something.
I would try but xwe corrupted my stupid morph wad and don't want to hassle w it anymore.

Last edited by gggmork on 02-15-13 at 14:33

Old Post 02-15-13 13:52 #
gggmork is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 03:04. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Morphing issues

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.