Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Fixangle?

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
redrum Joined: 28 Mar 2007 Posts: 367 Location: Long Island, New York |

Posted: Tue Oct 23, 2007 12:12 am Post subject: Fixangle? |

I've added monsters to my mod. Problem is, in certain spawn points the monsters face the wall. I tried adding self.fixangle = TRUE; to the code but that didn't help. How can I fix this? _________________
Welcome to the Overlook Hotel 69.113.123.178:27500

Back to top |

Orion Joined: 12 Jan 2007 Posts: 414 Location: Brazil |

Posted: Tue Oct 23, 2007 12:43 am Post subject: |

Add:

Code:
self.angles = spot.angles;

Make sure the monster's spawnning function calls SelectSpawnPoint() from an entity called "spot", or whatever. If is not "spot", then change it to whatever name you gave to the local entity (that is at the very top of the monster spawning function).
Remove the self.fixangle = TRUE line.
_________________
There's no signature here. Stop looking for one.

Back to top |

redrum Joined: 28 Mar 2007 Posts: 367 Location: Long Island, New York |

Posted: Tue Oct 23, 2007 12:52 am Post subject: |

Thanks man! _________________ Welcome to the Overlook Hotel 69.113.123.178:27500

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group