Inside3D!
     

Fixangle?

 
Post new topic   Reply to topic    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

PostPosted: Tue Oct 23, 2007 12:12 am    Post subject: Fixangle? Reply with quote

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
View user's profile Send private message Send e-mail
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Tue Oct 23, 2007 12:43 am    Post subject: Reply with quote

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
View user's profile Send private message
redrum



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

PostPosted: Tue Oct 23, 2007 12:52 am    Post subject: Reply with quote

Thanks man!
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    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