Help With: func_door_model

Discuss programming in the QuakeC language.
Post Reply
ijed
Posts: 64
Joined: Sat Jul 26, 2008 4:26 am
Location: Chile, SA

Help With: func_door_model

Post by ijed »

So:

I've got a point entity called a func_door_model. The idea is for the mapper to specify a .bso model in there and circumnavigate a load of issues - breaking max models, patchy lighting, messing around with texture alignment etc.

It seems to work pretty well, the whole idea is to later on extend it to other entities like trains, breakables and so on.

The problem is that doors created this way aren't generating their trigger field.

What I have is a 'wrapper' piece of code that specifies a .mdl and replaces the model field with that value - this is a an engine fix for DP that I imported from elsewhere.

As I understand it:

cmins = self.mins;
cmaxs = self.maxs;

and

self.owner.trigger_field = spawn_field(cmins, cmaxs);

Are what define and then create the trigger field, but aren't working when an external .bsp is referenced.

I can touch the door and fire it from a trigger, so the functionality is intact apart from the trigger.

Pretty new to this stuff.

Any ideas?
Post Reply