Announcement

Collapse
No announcement yet.

Inline Models Spawn Origin Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inline Models Spawn Origin Problem

    Hey all,

    I have a problem with inline model entities and their origin. When they are spawned in the game, some of them are out of place and i have no idea why.
    Does the QuakeC or engine code do anything special to their origin when they are spawned?. This is my own secret engine project btw.

    For example in these pictures of DM5, the func_door entities (inline models) are not working 100%. One is in the right place, the other is outside the map.

    View image: shot 0000

    View image: shot 0001

  • #2
    if the .angles field is set, the door will be rotated around its origin (typically at world coord '0 0 0').

    the qc door code ordinarily does this in its spawn function:
    self.mangle = self.angles;
    self.angles = '0 0 0';

    if you have custom qc code, you'll need/want to replicate that somehow.
    Some Game Thing

    Comment


    • #3
      Aha, seems like Quake forces the entity angles to 0 0 0.

      Thanks!.
      Last edited by Buzz; 07-22-2013, 01:15 PM.

      Comment

      Working...
      X