[No] IsAbstract() or bAbstract bool in Object

Moderator: GZDoom Developers

IsAbstract() or bAbstract bool in Object

Postby Major Cooke » Tue Dec 11, 2018 12:21 pm

One or the other. Preferrably the latter but either will suffice. Simply put, this could be useful for things like checking inventory items and not giving them if they're marked as such.

Since abstract is not inherited by children, this will be useful for mod compatibility. Why? Because currently there's no telling what inventory item one is checking for any sign of being abstract, or say, not wanted for inventory. Or perhaps a monster base or weapon template.

Note I am NOT asking for abstract to be implemented directly to disable spawning, etc. I merely think it would be a good idea to allow modders the ability to check if it's flagged as abstract, and then to determine what to do from there.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: IsAbstract() or bAbstract bool in Object

Postby Graf Zahl » Wed Dec 12, 2018 4:29 am

Sorry, but that's not going to happen.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: IsAbstract() or bAbstract bool in Object

Postby Apeirogon » Wed Dec 12, 2018 5:02 am

Usually abstract actors have in begin play something like
Code: Select allExpand view
class abstraction : actor
{
override void (post)beginplay ()
{
    if(self.getclass() == "abstraction") self.destroy();
    super.(post)beginplay ();
}

}

Because I did not see anyone who try to use base abstract actor as "real" actor. Because it template.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests