Setting Angles and Origins.
I'm trying to rotate the entities all around a selected player.
Code:
Here's what I have. [IMG]http://img267.**************/img267/3995/whatun1.jpg[/IMG] The ents line up. Here's what I'm trying to achieve. [IMG]http://img47.**************/img47/5585/360wq0.jpg[/IMG] (The images probably weren't needed, but I wanted to make sure I made sense) I would assume this would have todo alot with the ents angles. But how to get them at the right angel, I have no idea. Anyone know anything that might be able to get them correctly angled? |
Re: Setting Angles and Origins.
are you sure your code works? i see you just set the origin of the same ent three times.
|
Re: Setting Angles and Origins.
well, you might want to explain the radius of the circle, and then how many ents you want to circle around the player.
Does it need to follow the player? and does it need be circling the player? |
Re: Setting Angles and Origins.
Quote:
Code:
@lunarwolfx There's a total of six monsters (Sentrys) around the player, it's always the same amount, and always in the same place. It's simply suppose to place itself around the player, and spin around the player untill his/her death. |
Re: Setting Angles and Origins.
okay you say it stays in the same place, yet you say it spins around the player until the players death. So are the monsters stuck in the same place they're spawned, or do they follow and circle the player?
If it's the latter option, then it's not as simple to do, but I'll try to do the math and figure it out, but what's the radius you want the circle to be? |
Re: Setting Angles and Origins.
Quote:
But I would like to have them rotate around the player after they join around in a circle. Also, the radius of the circle is 1000 HL1 Units (I have no idea what units HL1 measures in) |
Re: Setting Angles and Origins.
Well that totally complicates things even more.
If that's the case, you'll have to hook FM_Think, and flag when the sentries need to form a circle, and work the math to have them rotate around the player. If you're going to have them walking to form the circle, then I would suggest you take a look at p3tsins civilian npc plugin for references. |
Re: Setting Angles and Origins.
Quote:
And the rotating around the player was just a little extra, wasn't really needed. Mainly I was just trying to figure out how to make there origin shifting off on an angle. |
Re: Setting Angles and Origins.
well I'm still not sure what you're trying to do, but if you want the sentries to form a circle around the player, then this might help
Basically focus on npc_circle. Code:
I tried it ingame, and it seems to work. |
Re: Setting Angles and Origins.
That's exactly it! Thank you much.
|
| All times are GMT -4. The time now is 00:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.