Problem making a superclass for NPCs

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Problem making a superclass for NPCs

Postby Poor » Tue Jan 04, 11 8:20 pm

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?
Poor
Poster
 
Posts: 190
Joined: Tue Jan 04, 11 7:42 pm

Postby Cozmo » Wed Jan 05, 11 12:13 am

Hey there. Had the same problem a while back; just add DrawType=DT_Mesh to your superclass defaultproperties. :)
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby Poor » Wed Jan 05, 11 2:01 am

Thanks! :D

That problem was driving me crazy.
Poor
Poster
 
Posts: 190
Joined: Tue Jan 04, 11 7:42 pm

Postby ~ô¿ô~Nobody~ » Wed Jan 05, 11 11:52 am

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. :)
Last edited by ~ô¿ô~Nobody~ on Wed Jan 05, 11 11:52 am, edited 1 time in total.
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 6 guests