Korax' Heritage

Official Forums of the Korax' Heritage Project
It is currently Fri Sep 10, 2010 4:32 am

All times are UTC - 8 hours




Post new topic Reply to topic  Page 2 of 2
 [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Compiling the sources
PostPosted: Sat Jan 16, 2010 7:40 am 
Offline
User avatar

Joined: Wed Jan 06, 2010 4:04 am
Posts: 16
I saw this thread before, but like then I do not understand how to use the information there. How does this new variable help me with distinction of bots and human players or melee and ranged weapons? Please explain it a bit more...


Last edited by AndiNo on Sat Jan 16, 2010 4:39 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Compiling the sources
PostPosted: Sat Jan 16, 2010 8:05 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2298
Location: St. Petersburg, Russia
AndiNo wrote:
How does this new variable help me with distinction of bots and human players or melee and ranged weapons?

It does not. You should not care about these. Bots aim on their own, by the way.
The "variable" there (NEWPARAM) is a maximal vertical angle from the direction of your aim, where auto-adjustment is allowed. Originally, as you may see, it is 30 degrees. This means that autoaiming occurs if target is 30 degrees upper or lower than your crosshair.
To disable autoaim simply set 0 degrees.

Formally:
Code:
topangle = AngleMod180(-angles.pitch + 0.0);
botangle = AngleMod180(-angles.pitch - 0.0);


Or simply like

Code:
topangle = AngleMod180(-angles.pitch);
botangle = AngleMod180(-angles.pitch);



This was already tested in Doom-based mode, and both shooting and melee weapons work nice.


Top
 Profile  
 
 Post subject: Re: Compiling the sources
PostPosted: Sat Jan 16, 2010 4:43 pm 
Offline
User avatar

Joined: Wed Jan 06, 2010 4:04 am
Posts: 16
Ahh I got it now ;)
I changed it and it works like a charm. It's probably much better this way, too!
Are you going to integrate this as an option into the game?


Top
 Profile  
 
 Post subject: Re: Compiling the sources
PostPosted: Sat Jan 16, 2010 7:32 pm 
Offline
2D Artist
2D Artist
User avatar

Joined: Thu Apr 25, 2002 12:01 am
Posts: 3057
Location: Mexico
Most probably we are going to do it ;).

_________________
I'm the ruler of the Fire Power.....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 2 of 2
 [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group pozycjonowanie
Chronicles phpBB2 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage