Page MenuHomeFeedback Tracker

AimChange and other bugs
Closed, ResolvedPublic

Description

  1. the OverrideAimChangeX function works incorrectly, i.e. if bot.GetInputController().OverrideAimChangeX(true,0.01) is executed, it seems that everything works, etc., but the function works incorrectly according to the data from the bot. GetInputController().GetHeadingAngle() should be there -PI or PI, but in fact it returns a much larger value there after running the OverrideAimChangeX command and everything breaks down after the PI mark.
  1. the OverrideAimChangeY command works incorrectly, ideally it should work on the principle of the OverrideAimChangeX command, only by Y. coordinates, but in fact it works only together with the OverrideAimChangeX command, so it is impossible to force the bot to raise the weapon exactly up and the current to rise when tilting.
  1. the news wrote that the bug was fixed. when the AI did not cause any damage after the shot, but in fact the problem remained, but now there is 1 more problem after the command bot.GetWeaponManager().Fire(weapons);

the shot is fired, and the bot starts lifting and turning the weapon.
Only this fix helps.
bot.GetInputController().OverrideAimChangeY(true,-0.01);
bot.GetWeaponManager().Fire(weapons);

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General
Steps To Reproduce

added the pbo test for offline testing.
has assigned actions to buttons
Y - create a bot
T - raise the bot's weapon.
R - reload the bot's weapon.
F - fire the bot's weapon.
G - fire the bot's weapon.. (fix)
I - turn the bot left.
O - stop the bot from turning.
P - turn the bot to the right.
J - activate gun elevator, works only with OverrideAimChangeX.
K - stop gun raising and lowering (does not seem to work at all).
L - activate the raising and lowering of the gun, works only with the OverrideAimChangeX command.

Source code for test


PBO

Event Timeline

komer created this task.Jun 12 2020, 4:58 PM
komer edited Steps To Reproduce. (Show Details)Jun 12 2020, 5:08 PM
Geez changed the task status from New to Assigned.Jun 15 2020, 1:29 PM
hlynge added a subscriber: hlynge.Sep 29 2020, 7:53 AM

Trying to understand why I am not able to use the DebugMod code to create "bots" on a Server+Client setup.
Please contact me on Discord: hlynge#2885

komer added a comment.Oct 6 2020, 3:29 PM

hlynge,This debug is designed to work offline on the client, it is not supported on the server side, to run on the server side you need to change the code for the server and add the missing code, but it doesn't matter, the problem is like on the client.

komer added a comment.Oct 6 2020, 3:34 PM

Geez, I would like to clarify, should we expect a fix for this issue in version 1.10?

modded class DayZPlayerImplement
{
override bool HeadingModel(float pDt, SDayZPlayerHeadingModel pModel)
{
Print("this "+this+" m_fHeadingAngle " +pModel.m_fHeadingAngle); approximate values ​​for comparison -0 or 1.44 or -1.33 or 4.15
Print("this "+this+" GetHeadingAngle " +GetInputController().GetHeadingAngle());
approximate values ​​for comparison 0 or -1.44 or 1.33 or -4.15
// all of the above functions can return the result above the value of Math.PI, that is, 3.14
return super.HeadingModel(pDt,pModel);
}
}

// m_fHeadingAngle or GetHeadingAngle () differ not only in values: one is positive, another is negative, and vice versa, but can also go beyond the Math.PI mark, which is 3.14.

also in class SDayZPlayerHeadingModel
it is written that you can change this variable
float m_fHeadingAngle; // [in / out]

but in reality it is impossible

Kizeko added a subscriber: Kizeko.Nov 6 2020, 10:10 PM

Geez, I would like to clarify, should we expect a fix for this issue in version 1.10?

Hey, it hasn't been fixed yet right ? And i read the 1.10 patch note and i don't think its getting fixed, or maybe i didn't see. I'm having similar problems, did you find some solutions to elevate/lower the gun normally ? Thanks

komer added a comment.EditedNov 7 2020, 9:53 AM

if you just need to change stance watch this
/*
STANCEIDX_ERECT,
STANCEIDX_CROUCH,
STANCEIDX_PRONE,
STANCEIDX_RAISEDERECT,
STANCEIDX_RAISEDCROUCH,
STANCEIDX_RAISEDPRONE
*/
//code
HumanCommandMove command = m_botPlayer.GetCommand_Move();
if(command)command.ForceStance(DayZPlayer.STANCEIDX_RAISEDERECT);

komer added a comment.Nov 7 2020, 9:56 AM

functions partially worked up to version 1.8, and in version 1.8 they completely broke functions.
although in patch 1.8 they wrote that they fixed it, Expansion also had a theme, but they idiots did not see that the functions did not work, and so on.
idiots wrote the countdown, but could not check the functions.

in patch 1.8 it was written that it was fixed
Added: Ability to set aimChange for non-player entities
Fixed: Spawning projectiles fired by non-player entities https://feedback.bistudio.com/T149517

but in fact that nifiga does not work, I will even say more, it has become even more inoperative.

In addition to this report, I wrote in the off-forum, as well as in the personal messages of ImpulZ and Sumrak, as a result, everyone ignored me.
and keep in mind that the game is for Ukraine, the game costs a lot of money compared to other countries

for a whole year they cannot fix 2 small functions, I am not saying that they do not add anything to modding at all,

promised a major patch in 1.10, but in fact it turned out to be a dummy

Kizeko added a comment.Nov 7 2020, 2:18 PM

functions partially worked up to version 1.8, and in version 1.8 they completely broke functions.
although in patch 1.8 they wrote that they fixed it, Expansion also had a theme, but they idiots did not see that the functions did not work, and so on.
idiots wrote the countdown, but could not check the functions.

in patch 1.8 it was written that it was fixed
Added: Ability to set aimChange for non-player entities
Fixed: Spawning projectiles fired by non-player entities https://feedback.bistudio.com/T149517

but in fact that nifiga does not work, I will even say more, it has become even more inoperative.

In addition to this report, I wrote in the off-forum, as well as in the personal messages of ImpulZ and Sumrak, as a result, everyone ignored me.
and keep in mind that the game is for Ukraine, the game costs a lot of money compared to other countries

for a whole year they cannot fix 2 small functions, I am not saying that they do not add anything to modding at all,

promised a major patch in 1.10, but in fact it turned out to be a dummy

wow... thank you for the infos, so you're telling me that since 2 years modding has been introduced we still can't elevate or lower the weapon of a bot even though it takes 2 lines to rotate the bot horizontally ???
It is kinda crazy that you've submitted the request 6 months ago and they still didn't fixed it...

Ralian added a subscriber: Ralian.Mar 26 2021, 5:53 AM
Geez closed this task as Resolved.Nov 30 2022, 1:54 PM
Geez claimed this task.