Page 1 of 1

Problem making a superclass for NPCs

PostPosted: Tue Jan 04, 11 8:20 pm
by Poor
If I wanted to make a ZombieDoberman I have to subclass Doberman for it to work correctly. When I try to create a superclass called ZombieDog that extends Dog, ZombieDoberman shows up as a Pawn sprite. I am not using any custom meshes or textures. Also, they look fine in UnrealEd.

I extracted MPBots since it uses its own version of ScriptedPawn, but when I recompile it it has the same problem. Anyone know what's wrong?

PostPosted: Wed Jan 05, 11 12:13 am
by Cozmo
Hey there. Had the same problem a while back; just add DrawType=DT_Mesh to your superclass defaultproperties. :)

PostPosted: Wed Jan 05, 11 2:01 am
by Poor
Thanks! :D

That problem was driving me crazy.

PostPosted: Wed Jan 05, 11 11:52 am
by ~ô¿ô~Nobody~
Just a little technical note..

A super class is a parent class of a gives class.
A sub class is a child of a given class.
If you're making a class extending another class then your class is the sub class. :)