Forum

Fixangle?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Fixangle?

Postby redrum » Tue Oct 23, 2007 12:12 am

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: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Orion » Tue Oct 23, 2007 12:43 am

Add:

Code: Select all
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.
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby redrum » Tue Oct 23, 2007 12:52 am

Thanks man!
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest