Is it posible to disable autoaim?

Anything not covered by other topics

Is it posible to disable autoaim?

Postby Don Pelayo » 28 Feb 2010 16:35

Hi. I've been surfing through the forum but I've been unable to find the solution to my problem: how to disable autoaim.
It should be a boolean variable, so even if it not in the UI it should be easily doable, I believe.
Could anyone help me? My brother and I are trying to play on coop and we find autoaim spoils a great deal of the fun.
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30

Re: Is it posible to disable autoaim?

Postby Crimson Wizard » 03 Mar 2010 21:03

People were asking about that already. I don't know if Janis planned this, but there's a very simple way to implement an option to toggle it off.
Some discussion was here:
viewtopic.php?f=2&t=3200
I could wish you good luck, but you do not have 'Luck' attribute.
Crimson Wizard
 
Posts: 829
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: Is it posible to disable autoaim?

Postby Don Pelayo » 04 Mar 2010 15:59

Thanks for your reply, but I am unable to deduce how to do what you suggest based on the link provided. Am I supposed to change those code lines somewhere? In which file is that code? Why would susbtituting a hard coded number (30) by a variable (NEWPARAM) eliminate the autoaim? Could you please elaborate?

Autoaiming gives us the impression of not being in charge: we fail shots we wouldn't have failed and we hit when we should have missed (we are playing Hexen). Even worse, you stop trying to aim, for it is pointless. We dislike it so much we have switched to Doomsengine, although it is not stable and -at least in coop- tends to save different states for each player, rendering to inconsistencies that might lead to unfinishable games: a switch might be pressed for one player and not for another, a wall might have moved for one and not for the other... which is pretty bad, and yet we are using it over Vavoom just because of the autoaim! So, please, if someone can point us in the right direction, thanks in advance.

BTW, we play using the mouse; we believe autoaim was a need when Hexen was played using the keyboard... it's when you use the mouse when, in our view, spoils the game.
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30

Re: Is it posible to disable autoaim?

Postby Crimson Wizard » 04 Mar 2010 17:39

Sorry, that thread was written for game programmers, who would surely understand what I wrote, so it may be quite confusing for others. What I meant, that 30 constant is a maximal angle of vertical autoaim. To totally disable it (hardcode-wise) one should replace it by 0. I suggested to use variable instead, which could be changed via options menu (e.g. toggle between 0, 30 or some other values).
I really hope Janis or Firebrand will implement this soon (maybe they already did, I don't check project's SVN every day). If you can change the code yourself and recompile vavoom executable, you are lucky, otherwise you'll have to wait when they do this.
I could wish you good luck, but you do not have 'Luck' attribute.
Crimson Wizard
 
Posts: 829
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: Is it posible to disable autoaim?

Postby Don Pelayo » 05 Mar 2010 16:27

Thanks for your answer, Crimson Wizard. However, wouldn't it be neccesary to do the same thing for yaw (I understand roll should play no use in a shot, given it doesn't matter if it spins or not)? Does the variable angles.yaw exist, then?
I wouldn't mind modifying some code and recompiling, but I would need some information to do that: dependencies, which languages vavoom and vavoom progs are written in, and how I am supposed to combine the two. If you can give some advice I might go for the task!
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30

Re: Is it posible to disable autoaim?

Postby Crimson Wizard » 05 Mar 2010 17:38

Don Pelayo wrote:Thanks for your answer, Crimson Wizard. However, wouldn't it be neccesary to do the same thing for yaw (I understand roll should play no use in a shot, given it doesn't matter if it spins or not)? Does the variable angles.yaw exist, then?

Ofcourse, angles.yaw exists, but AFAIK there's no horizontal autoaim in Vavoom. neither was in Doom/Heretic and Hexen.

Don Pelayo wrote:I wouldn't mind modifying some code and recompiling, but I would need some information to do that: dependencies, which languages vavoom and vavoom progs are written in, and how I am supposed to combine the two. If you can give some advice I might go for the task!

Actually all you need is change progs... I just remembered, that in Vavoom 1.30 progs are kept uncompiled, as text files, in basev/basepak.pk3. So you can simply make aforementioned changes right in the archive, and vavoom will use them when launched.
In other words, open basev/basepak.pk3 -> progs/linespec/EntityEx.LineAttack.vc, find function
Code: Select all
final EntityEx AimLineAttack(out TVec OutDir, TAVec angles, float distance)

and change
Code: Select all
    topangle = AngleMod180(-angles.pitch + 30.0);
    botangle = AngleMod180(-angles.pitch - 30.0);

to
Code: Select all
    topangle = AngleMod180(-angles.pitch + 0.0);
    botangle = AngleMod180(-angles.pitch - 0.0);

(or just
Code: Select all
    topangle = AngleMod180(-angles.pitch);
    botangle = AngleMod180(-angles.pitch);
I could wish you good luck, but you do not have 'Luck' attribute.
Crimson Wizard
 
Posts: 829
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: Is it posible to disable autoaim?

Postby Don Pelayo » 06 Mar 2010 01:11

Wizard, thanks a lot. Just for the record, if anyone else is interested in the same thing, the file basepak.pk3 that needs to be changed is in basev/common, not the one in basev/hexen or any other. I have modified the lines and autoaim is over. Thanks a lot.
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30

Re: Is it posible to disable autoaim?

Postby Janis Legzdinsh » 06 Mar 2010 13:40

Crimson Wizard wrote:In other words, open basev/basepak.pk3 -> progs/linespec/EntityEx.LineAttack.vc, find function
Code: Select all
final EntityEx AimLineAttack(out TVec OutDir, TAVec angles, float distance)

and change
Code: Select all
    topangle = AngleMod180(-angles.pitch + 30.0);
    botangle = AngleMod180(-angles.pitch - 30.0);

to
Code: Select all
    topangle = AngleMod180(-angles.pitch + 0.0);
    botangle = AngleMod180(-angles.pitch - 0.0);

(or just
Code: Select all
    topangle = AngleMod180(-angles.pitch);
    botangle = AngleMod180(-angles.pitch);

This will make most of the monsters in Doom unable to aim as well which is not what you want.

Anyway I already implemented it properly.
You may think you can fly, but you better not try...
(Astral Projection - People Can Fly)
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1940
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Re: Is it posible to disable autoaim?

Postby Crimson Wizard » 06 Mar 2010 15:51

Janis Legzdinsh wrote:This will make most of the monsters in Doom unable to aim as well which is not what you want.

Ouch. My bad. Guess I haven't explored this good enough.
I could wish you good luck, but you do not have 'Luck' attribute.
Crimson Wizard
 
Posts: 829
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: Is it posible to disable autoaim?

Postby Don Pelayo » 07 Mar 2010 14:10

And I thought we were getting way better at dodging... :D
I understand for what Janice says there is a new version of Vavoom that implements the possibility of disabling autoaim, am I right?
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30

Re: Is it posible to disable autoaim?

Postby Don Pelayo » 11 Mar 2010 17:41

So, Janis or Crimson Wizard, am I right to assume the last version of Vavoom now includes the possibility of disabling autoaim? :)
Please excuse me if it is stated elsewhere, for I've been unable to find it if that were the case.
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30

Re: Is it posible to disable autoaim?

Postby Crimson Wizard » 11 Mar 2010 17:58

Last revision of Vavoom should have this. The one, that is on SVN.
I don't know if they have an executables downloadable anywhere, sorry. But if you can compile vavoom yourself, here's link to SVN repository:
http://vavoom.svn.sourceforge.net/svnro ... unk/vavoom

...or wait till Vavoom 1.31 release. Hopefully it will be done soon.
I could wish you good luck, but you do not have 'Luck' attribute.
Crimson Wizard
 
Posts: 829
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: Is it posible to disable autoaim?

Postby Firebrand » 12 Mar 2010 14:25

You can get the latest beta from here: http://svn.drdteam.org/vavoom/
I'm the ruler of the Fire Power.....
User avatar
Firebrand
 
Posts: 811
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: Is it posible to disable autoaim?

Postby Don Pelayo » 22 Mar 2010 22:10

Thanks, Firebrand.

Un saludo desde España.
Don Pelayo
 
Posts: 7
Joined: 28 Feb 2010 16:30


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests