Aim Assist Mod v0.7.5, Now with Multiplayer Support!

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Re: Aim Assist Mod v0.5

Postby CD-Roman » Sat Dec 22, 2018 11:52 pm

Simple mod but very helpful for mobile Doom players, nobody like touch controls. Also this can work very nice with gyro controls and most important, can help disabled people to play Doom, bit easier, who cares, Doom is all about fun and killing demons :twisted:
CD-Roman
 
Joined: 19 May 2018

Re: Aim Assist Mod v0.5

Postby elCreyo » Sun Jan 20, 2019 5:18 am

So, I just have tested this mod with a controller and I gotta say it's pretty fantastic. Really makes the game comfortable to play with the controller.
User avatar
elCreyo
elanimator
 
Joined: 07 Jul 2018
Discord: elcreyo#3831
Twitch ID: elcreyo

v0.6 Released

Postby RicardoLuis0 » Sun Jan 20, 2019 12:54 pm

Thank you, everyone, for the feedback. Version 0.6 is released, with some bug fixes and a better obstruction handling method. If you find any bugs, don't forget to report here so that I can fix them.

Download v0.6

Spoiler: Changelog
RicardoLuis0
 
Joined: 21 Aug 2018
Location: Brazil
Discord: RicardoLuis0#1862
Github ID: RicardoLuis0
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: Aim Assist Mod v0.6

Postby Nash » Sun Jan 20, 2019 9:28 pm

This makes playing with an Xbox 360 controller on the PC much more bearable. Good job. :D
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Re: Aim Assist Mod v0.6

Postby cybie69 » Tue Dec 31, 2019 2:05 pm

Does this work with mouse aiming? Can it be used in conjunction with weapons mod where the recoil causes the gun to jerk upwards slightly making it annoying to recenter in the heat of a hoard of monsters effectively?
cybie69
 
Joined: 19 Mar 2019

Re: Aim Assist Mod v0.6

Postby Nash » Wed Jan 29, 2020 10:13 am

So recently I tried this mod on a spare - and underpowered - laptop. It's great to be able to play GZDoom on-the-go with a controller, but one thing I noticed is that the think time chokes a lot when this mod is paired with my gore mod, when there are a lot of gib pieces littered on the floor.

Easiest way to test this is, at the exit room of E1M1 with the two barrels, just blow up the barrels so that the zombies behind the fence smash into gibs. When walking towards the gibs, with the lamps in view, FPS drops a lot.

I have tried to disable obstruction-checking in the AA menu but it doesn't make things better.

Can you tell me more about what your algorithms are doing? I'd like to see if there's anything I can do from my side to make the gibs not slow down this mod.
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Re: Aim Assist Mod v0.6

Postby TheRailgunner » Wed Jan 29, 2020 10:47 am

cybie69 wrote:Does this work with mouse aiming? Can it be used in conjunction with weapons mod where the recoil causes the gun to jerk upwards slightly making it annoying to recenter in the heat of a hoard of monsters effectively?


Exactly this - I've been running AAM 0.6 with The Trooper for a little while (which the assist factor set to 0.1 and a seek angle of 6 - anything above this makes AAM a little TOO forceful for simulating Bungie-style aim assist), and I've been quite pleased with what it does for follow-up shots and recoil management (I had to make some changes to the headshot hitboxes to allow AAM to target them - beyond a certain distance, it favors the body hitbox more strongly).

Basically, I'm using it to complete a sense of modernness in my Doom experience, to great effect. The only real downsides are that it makes missile weapons a little more problematic (particularly slow-moving missiles, which need their target to be led, making aim assist a handicap) and AAM reacts to enemies hiding just outside of the player's sight line. Not terribly inconvenient - in fact, slightly helpful.
User avatar
TheRailgunner
Words go here.
 
Joined: 08 Jul 2013

Re: Aim Assist Mod v0.6

Postby retronutcase » Wed Jan 29, 2020 4:25 pm

I love what this mod does, but it does seem to cause sync issues if it's used in a multiplayer co-op session. Any idea if this could somehow be addressed?
retronutcase
 
Joined: 07 Jun 2018

Re: Aim Assist Mod v0.6

Postby RicardoLuis0 » Wed Apr 08, 2020 3:50 pm

Nash wrote:Can you tell me more about what your algorithms are doing? I'd like to see if there's anything I can do from my side to make the gibs not slow down this mod.


Sorry for taking so long to answer, i've taken a bit of time off from doom modding because i was (and still am) in the last stretch of university, and am only really coming back now.

Basically what the mod does, is it does multiple line traces (in a circular pattern), and checks if it hit an actor. If it did hit an actor, it checks if it was a non-friendly monster, and if yes, it checks the distance, and if the distance is closer than the previously hit monster, it sets that one as the closest. There are two checking methods, one of them checks all of the radius that was set in the config, and the second one, probably best for performance, only checks the outer radiuses if the previous one it checked didn't hit any monster (sorry if it's hard to understand), all the heavy calculation and obstacle checking only happen after this one closest target was found, and only pertaining to that target.
RicardoLuis0
 
Joined: 21 Aug 2018
Location: Brazil
Discord: RicardoLuis0#1862
Github ID: RicardoLuis0
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: Aim Assist Mod v0.6

Postby RicardoLuis0 » Wed Apr 08, 2020 4:01 pm

retronutcase wrote:I love what this mod does, but it does seem to cause sync issues if it's used in a multiplayer co-op session. Any idea if this could somehow be addressed?


Sorry, i'm not very knowledgeable in what causes and how to prevent de-syncs, i'll try researching, but can't promise anything.
RicardoLuis0
 
Joined: 21 Aug 2018
Location: Brazil
Discord: RicardoLuis0#1862
Github ID: RicardoLuis0
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: Aim Assist Mod v0.6.1

Postby RicardoLuis0 » Mon Mar 29, 2021 2:34 pm

Version 0.6.1 is out, which fixes the menus in GZDoom 4.0.0+, a slightly bigger update (v0.7) is in development.

Download v0.6.1

Spoiler: Changelog
Last edited by RicardoLuis0 on Mon Mar 29, 2021 4:46 pm, edited 1 time in total.
RicardoLuis0
 
Joined: 21 Aug 2018
Location: Brazil
Discord: RicardoLuis0#1862
Github ID: RicardoLuis0
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: Aim Assist Mod v0.6

Postby kipo » Mon Mar 29, 2021 3:15 pm

RicardoLuis0 wrote:Sorry, i'm not very knowledgeable in what causes and how to prevent de-syncs, i'll try researching, but can't promise anything.


This is because you are using consoleplayer, which is different for every player, hence the desyncs.

You can loop through every player and execute your code in each one, something like this:

Code: Select allExpand view
   override void WorldTick(){
      for (int i = 0; i < MAXPLAYERS; i++)
      {
                  if (playeringame[i] && players[i].mo)
                  {
                    doAim(players[i].mo);
                  }
      }
   }


You can also test your code in multiplayer in the same pc, if you excecute one instance of gzdoom as server, and another one as client (the client one pointing to the ip address 127.0.0.1). And alt-tabbing to test each one.

Edit: sorry, I didn't see that comment was very old, you probably already fixed it in the last release.
kipo
 
Joined: 07 Oct 2019

Re: Aim Assist Mod v0.6

Postby RicardoLuis0 » Mon Mar 29, 2021 3:20 pm

kipo wrote:sorry, I didn't see that comment was very old, you probably already fixed it in the last release.

No, wasn't fixed, last release was just a quick bugfix for the menus, i'm meaning to do a deep dive on multiplayer and to try to add a few features that were requested on the next update (v0.7), thanks for the info!
RicardoLuis0
 
Joined: 21 Aug 2018
Location: Brazil
Discord: RicardoLuis0#1862
Github ID: RicardoLuis0
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: Aim Assist Mod v0.7, Now with Multiplayer Support!

Postby RicardoLuis0 » Wed Apr 07, 2021 8:38 am

Version 0.7 is out, now with Multiplayer Support!

Download v0.7.2

Spoiler: Changelog
Last edited by RicardoLuis0 on Wed Apr 07, 2021 11:08 am, edited 1 time in total.
RicardoLuis0
 
Joined: 21 Aug 2018
Location: Brazil
Discord: RicardoLuis0#1862
Github ID: RicardoLuis0
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: Aim Assist Mod v0.7.1, Now with Multiplayer Support!

Postby Nash » Wed Apr 07, 2021 10:08 am

I have some suggestions

1) AddOptionMenu automatically adds a line spacing to the top. However, if you move the StaticText "" to the bottom, like so, the spacing would look more graceful against other mods:

Code: Select allExpand view

AddOptionMenu 
"OptionsMenu"{
    Submenu "Aim Assist Options", "AimAssistOptions"
    StaticText ""
}
 




2) GZDoom now has a "simple options" menu. You should add support for it, because otherwise, players who use the simple option won't see the link to the aim assist options.

Code: Select allExpand view

AddOptionMenu 
"OptionsMenu"{
    Submenu "Aim Assist Options", "AimAssistOptions"
    StaticText ""
}

AddOptionMenu "OptionsMenuSimple"{
    Submenu "Aim Assist Options", "AimAssistOptions"
    StaticText ""
}


3) There are a lot of calls to CVar.GetCVar at runtime. This can lead to performance issues, depending on how polluted the player's INI is, because GetCVar's way of searching through the INI is quite slow (source). What you can do is, create some transient CVar variables on the objects that need them, and then populate them one-time to "cache" them. Just check if the variables are NULL, call GetCVar once to populate the variable, then leave it at that. Caching CVar references always leads to better mod performance.

Quick example:

Code: Select allExpand view

class WhateverClass
{
    // transient variables are not saved to the save game and will be null when the save is loaded
    // so you must take care to populate them
    // additionally, CVar variables on classes must be transient otherwise the save will fail
    // that's just how GZDoom works
    transient CVar someCVar;
    
    void SomeFunction
(void)
    {
        // cache the CVar
        if (!someCVar)
        {
            someCVar = CVar.GetCVar("cl_some_cvar", player);
        }
        
        
// if the cache still failed, probably best to just VM abort because the mod won't function properly anyway
        if (!someCVar) ThrowAbortException("Can't cache CVar 'cl_some_cvar'!");
        
        
// now it's safe to get the value out of the CVar
        if (someCVar.GetBool())
        {
            // do whatever
        }
    }
}
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

PreviousNext

Return to Gameplay Mods

Who is online

Users browsing this forum: No registered users and 9 guests