Search found 191 matches
- Tue Nov 17, 2015 6:35 am
- Forum: QuakeC Programming
- Topic: Smooth Rotation And Rotate to Specific Degree
- Replies: 8
- Views: 16160
Re: Smooth Rotation And Rotate to Specific Degree
It's just limiting the value of move to the range between -self.yaw_speed and self.yaw_speed. But I agree it could be more concise:
if (move < 0 - self.yaw_speed) { move = 0-self.yaw_speed; }
else if (move > self.yaw_speed) { move = self.yaw_speed; }
Haha... yeah, I didn't like how it read ...
- Sun Nov 15, 2015 7:26 am
- Forum: QuakeC Programming
- Topic: Smooth Rotation And Rotate to Specific Degree
- Replies: 8
- Views: 16160
Re: Smooth Rotation And Rotate to Specific Degree
Been struggling with trying to get my brainless bot to rotate smoothly in one direction or another. I have finally discovered why it has not been working for me.
I have been using DP's spawnclient to spawn a bot into a client slot and discovered that ChangeYaw does not work with bot spawned like ...
I have been using DP's spawnclient to spawn a bot into a client slot and discovered that ChangeYaw does not work with bot spawned like ...
- Fri Nov 13, 2015 7:02 am
- Forum: QuakeC Programming
- Topic: Smooth Rotation And Rotate to Specific Degree
- Replies: 8
- Views: 16160
Re: Smooth Rotation And Rotate to Specific Degree
Sorry,
tempvec = vectoangles(self.enemy.origin - self.origin);
should be
tempvec = vectoangles('0 200 0' - self.origin);
tempvec = vectoangles(self.enemy.origin - self.origin);
should be
tempvec = vectoangles('0 200 0' - self.origin);
- Fri Nov 13, 2015 6:59 am
- Forum: QuakeC Programming
- Topic: Smooth Rotation And Rotate to Specific Degree
- Replies: 8
- Views: 16160
Re: Smooth Rotation And Rotate to Specific Degree
Thanks for the response Spike,
Based on what you shared, I had thought that the following would work, but it did not. (self.ideal_yaw is a float and would not accept vectorangles directly.)
vector tempvec;
tempvec = vectoangles('0 200 0' - self.origin);
self.ideal_yaw = tempvec_y;
self.yaw_speed ...
Based on what you shared, I had thought that the following would work, but it did not. (self.ideal_yaw is a float and would not accept vectorangles directly.)
vector tempvec;
tempvec = vectoangles('0 200 0' - self.origin);
self.ideal_yaw = tempvec_y;
self.yaw_speed ...
- Thu Nov 12, 2015 9:58 am
- Forum: QuakeC Programming
- Topic: Smooth Rotation And Rotate to Specific Degree
- Replies: 8
- Views: 16160
Smooth Rotation And Rotate to Specific Degree
Hello all,
I'm dinking around with DP and it's bot spawning function spawnclient().
Does anyone know of a way to easily use DP to smoothly rotate a bot's yaw to a specific degree? I'm not familiar with DP, so I might be missing something in the dpextensions.qc file.
I have been experimenting with ...
I'm dinking around with DP and it's bot spawning function spawnclient().
Does anyone know of a way to easily use DP to smoothly rotate a bot's yaw to a specific degree? I'm not familiar with DP, so I might be missing something in the dpextensions.qc file.
I have been experimenting with ...
- Tue Jun 11, 2013 11:07 am
- Forum: Artificial Intelligence
- Topic: Any New Bots?
- Replies: 5
- Views: 14053
Re: Any New Bots?
huh?mankrip wrote:I guess not, there hasn't been any spam lately. </zing!>
- Tue Jun 11, 2013 5:38 am
- Forum: Artificial Intelligence
- Topic: Any New Bots?
- Replies: 5
- Views: 14053
Any New Bots?
Hi everyone! Been a while since I last posted here!
I find myself being drawn to Quake yet again... go figure!
Anyways, I was wondering if any new or recent bots have been created?
I find myself being drawn to Quake yet again... go figure!
Anyways, I was wondering if any new or recent bots have been created?
- Thu Mar 17, 2011 12:53 am
- Forum: General Discussion
- Topic: Prey 2
- Replies: 13
- Views: 4680
- Sat Mar 12, 2011 3:45 am
- Forum: General Discussion
- Topic: Covert Ops Thread
- Replies: 6
- Views: 2288
- Sun Mar 06, 2011 8:45 am
- Forum: Engine Programming
- Topic: Mass Search and Replace?
- Replies: 18
- Views: 4934
- Thu Mar 03, 2011 5:43 am
- Forum: General Discussion
- Topic: What are you working on?
- Replies: 3884
- Views: 6511156
- Thu Feb 24, 2011 6:58 am
- Forum: QuakeC Programming
- Topic: Flashbang/stun grenades?
- Replies: 13
- Views: 2972
- Thu Feb 24, 2011 6:09 am
- Forum: General Discussion
- Topic: What are you working on?
- Replies: 3884
- Views: 6511156
Junrall, I forgot if you'd answered this already, but is qcpad scintilla based?
If not I'd definately suggest checking scintilla out.
No, QCPad isn't Scintilla based. I have my own home brewed syntax highlighting system built in... certainly not as fast as Scintilla or the others but it works and ...
If not I'd definately suggest checking scintilla out.
No, QCPad isn't Scintilla based. I have my own home brewed syntax highlighting system built in... certainly not as fast as Scintilla or the others but it works and ...
- Wed Feb 23, 2011 7:52 pm
- Forum: General Discussion
- Topic: What are you working on?
- Replies: 3884
- Views: 6511156
- Wed Feb 23, 2011 6:47 am
- Forum: General Discussion
- Topic: What are you working on?
- Replies: 3884
- Views: 6511156
I finally merged my syntax colorizor-thingy-majingy into QCPad... wow, what an undertaking! There are a few glitchy things to fix and polish with the syntax colorizing and a few other glitches related to file saves.
You know the saying... "It's a diamond in the rough" well... at the moment QCPad is ...
You know the saying... "It's a diamond in the rough" well... at the moment QCPad is ...