Please change - Gibs != RealGibs

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Please change - Gibs != RealGibs

by Phobus » Tue Jul 19, 2005 1:51 pm

ok, maybe I'm wrong then...

I still think I've seen that somewhere, or maybe it was used in conjunction with DeHacked...

by Giest118 » Tue Jul 19, 2005 12:43 pm

Decorate items can't do anything lest they trigger something in ACS, and ACS can't change max health either.

by Phobus » Tue Jul 19, 2005 12:29 pm

Yeah, decorate items that have a max health limit or something. Of course I might be wrong, it'd need some expertise to say so either way for certain.

by Giest118 » Tue Jul 19, 2005 12:16 pm

Phobus wrote:That can be done using decorate, I believe.
The player's max health?

by Phobus » Tue Jul 19, 2005 11:52 am

That can be done using decorate, I believe.

However backwards compatability is really needed, especially seeing as many wads use it, and many god ones at that. Also projects that are taking a while (ZDCMP2, something I'm working on, and possibly some others) still use DeHacked.

by Giest118 » Tue Jul 19, 2005 12:19 am

Bouncy wrote:Dehacked would OFFICIALLY be useless for GOOD.
Not quite.

It's still necessary if you want backwards compatibility, and it has the ability to change the player's max health.... (And yes, there are uses for that.)

by Xaser » Tue Jul 19, 2005 12:10 am

The ability to modify existing things will fix more problems than anything else I can think of right now. MartinHowe, you have summed up the whole thing perfectly, and I can't think of any reason why not to add this.

by wildweasel » Sat Jul 16, 2005 8:56 pm

MartinHowe, you have just showcased the old saying "Great minds think alike" - this is exactly what I was thinking.

by Nash » Sat Jul 16, 2005 2:48 pm

I fully agree with Martin's idea...

by MartinHowe » Sat Jul 16, 2005 2:51 am

cutmanmike wrote:I agree, but I think graf had a reason why this cannot be done.
Why not? Inheritance is handled by class names, not DoomEdNums. What one wants, more often than not, is a new actor to replace the original but with the same DoomEdNumber. This is not a strong as actually modifying the original actor, but is close enough that it surely deserves to be implementd?

Define a new actor inheriting from an old one and have a new decorate keyword something like this:

Code: Select all

ACTOR MyZombie : ZombieMan SAMEID
{
    obituary "%o was killed by a modified Zombie."
}
All this would do is suppress the warning about two things having the same DoomEdNum, surely that's a trivial matter to change? After all, the original ZombieMan can still be referenced by class name. As to changing the originals, what problems would this cause:

Code: Select all

MODIFY ZombieMan IMPLICIT
{
    obituary "%o was killed by a modified Zombie."
}
The IMPLICIT keyword would mean that changes were inherited whenever the game implicitly uses a ZombieMan for something. EXPLICIT would mean that the changes would only affect ZombieMen created or referenced explicitly by the mapper, for example by placing one by DoomEdNum in the editor or SpawnSpot() in a script.

In effect, ZDoom would need to store a copy of the original definition; however, that could be standard anyway. Each predefined THING could be defined as Default<ClassName> inside the system, with <ClassName> being defined by the game automatically as a no-change inheritance of the default version if nothing tries to change the default version of the THING. In this case, the "real" ZombieMan would be DefaultZombieMan and ZombieMan would automatically be created by the game if nobody attempted to modify Zombies.

The MODIFY, EXPLICIT and IMPLICIT keywords would only work on predefined THINGS. Note that the default version should NOT have a DoomEdNum as it would only be needed internally for use by the game. Indeed, although it would be possible to refer to the default item explicitly by class name (for example, in a script), should it even be allowed?

Discuss :)

by ant1991331 » Sat Jul 16, 2005 12:32 am

Xaser wrote:What we really need is the ability to modify existing objects with DECORATE. That would allow you to change the RealGibs actor itself.
although, i asked this before, and it would be great if you could....

by Nash » Sat Jul 16, 2005 12:30 am

Okay, I see that this thread has Randy's official NO labelled on it, but as someone said earlier; how about a gibbed/crushed state for the actor through DECORATE?

by Enjay » Fri Jul 15, 2005 5:45 pm

randy wrote:The problem is that Doom did not spawn a gib actor when something was crushed. Instead, the crushed actor was set to the gib state. There may not be any Dehacked patches that took advantage of this behavior, but I prefer to play it safe and stay compatible.
Purely for the record, when this behaviour was changed to the current Zdoom one, it did minorly mess up the dehacked patch I was working on at the time. Irrelevant now, but I remember it did catch me "on the hop" at the time.

by Cptschrodinger » Fri Jul 15, 2005 5:34 pm

Well, Then can we define the gib state with decorate?

by randi » Fri Jul 15, 2005 2:57 pm

The problem is that Doom did not spawn a gib actor when something was crushed. Instead, the crushed actor was set to the gib state. There may not be any Dehacked patches that took advantage of this behavior, but I prefer to play it safe and stay compatible.

Top