Home » PLAYER'S HQ 1.13 » v1.13 General Gameplay Talk » Can animation and bullet speed be slower
Can animation and bullet speed be slower[message #352830] Fri, 30 March 2018 01:55 Go to next message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
Title says it all. I wish animations and bullet speed could be slower, could it be tweeked somehow?

Also... I found this stuff in the INI:
PLAYER_TURN_SPEED_UP_FACTOR = 1.00
ENEMY_TURN_SPEED_UP_FACTOR = 1.00
CREATURE_TURN_SPEED_UP_FACTOR = 1.00
MILITIA_TURN_SPEED_UP_FACTOR = 1.00
CIVILIAN_TURN_SPEED_UP_FACTOR = 0.50

Is that it for animation? And bullet speed?



Born, play JA2, die, reload, die again, reload again.
Re: Can animation and bullet speed be slower[message #352832 is a reply to message #352830] Fri, 30 March 2018 02:05 Go to previous messageGo to next message
Flugente

 
Messages:3346
Registered:April 2009
Location: Germany
That is for animation, yes. Bullet speed can be set via the <ubBulletSpeed>-tag in Weapons.xml.
The effects aren't that impressive, when one instead alters the code in the corresponding function, it is possible to slow down bullets to comical low speed. Which leads to the discovery that a soldier cannot shoot themself (a bullet never hits the person that fired it).



“What are you doing?” Joffrey interrupted him.

“… can’t a man give a few last words for his son to carry?”

“…Who told you your son was making it out of this field alive?”

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Can animation and bullet speed be slower[message #352836 is a reply to message #352832] Fri, 30 March 2018 06:27 Go to previous messageGo to next message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
Flugente wrote on Thu, 29 March 2018 20:05
That is for animation, yes. Bullet speed can be set via the <ubBulletSpeed>-tag in Weapons.xml.
The effects aren't that impressive, when one instead alters the code in the corresponding function, it is possible to slow down bullets to comical low speed. Which leads to the discovery that a soldier cannot shoot themself (a bullet never hits the person that fired it).


Oh, wow, the bulllet speed is one tag for every single gun! I don't want it slower that hard, especially because I dont want my mercs trying to shot a slow bullet and trying to catch it with their teeths.



Born, play JA2, die, reload, die again, reload again.
Re: Can animation and bullet speed be slower[message #352840 is a reply to message #352836] Fri, 30 March 2018 12:34 Go to previous messageGo to next message
townltu

 
Messages:200
Registered:December 2017
Location: here
Welll its not so hard to change a big number of values in .xml flies
if it is correct that notepad++ allows to handle them flawless.

Open e.g. weapons.xml with notepad++,
search&replace all strings "<ubBulletSpeed>" with e.g. "<ubBulletSpeed>,,,
and "</ubBulletSpeed>" with ",,,</ubBulletSpeed>".
Hit ctrl+A and ctrl+C.

Run e.g. Open Office calc, ensure upper left field is selected, hit ctrl+V.
In import dialogue select in case of this example ",,," as seperator.
Now bullet speed value is seperated in calc and defined as number,
we can apply math operation like in/de-crease by fixed value or %,
here for every field that follows a field with entry "<ubBulletSpeed>".
When done hit ctrl+A and ctrl+C, then paste into hex editor for cleanup,
there search for string "<ubBulletSpeed>", in raw hex check which bytes were added by calc program before the actual value appears.
(if in doubt compare with original file)
Added bytes should be [09 09] for OO version 3.0.
Mark string of bytes which represent "<ubBulletSpeed>" text and the bytes added by calc, copy it.
Still in hex editor select to search&replace all instances,
paste string into search mask, replace with string where you deleted those bytes which were added by calc.
Repeat for [09h 09h "</bulletspeed>"], save from hex editor as working xml.

Will take some time to prepare, but even if unfamiliar with calc shorten subsequent edits also of other values once its set up.
Last not least the option to automatically update related values in other imported .xml files.


Besides, i use invisible bullets;)
Re: Can animation and bullet speed be slower[message #352860 is a reply to message #352840] Sat, 31 March 2018 02:03 Go to previous message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
townltu wrote on Fri, 30 March 2018 06:34
Welll its not so hard to change a big number of values in .xml flies
if it is correct that notepad++ allows to handle them flawless.

Open e.g. weapons.xml with notepad++,
search&replace all strings "<ubBulletSpeed>" with e.g. "<ubBulletSpeed>,,,
and "</ubBulletSpeed>" with ",,,</ubBulletSpeed>".
Hit ctrl+A and ctrl+C.

Run e.g. Open Office calc, ensure upper left field is selected, hit ctrl+V.
In import dialogue select in case of this example ",,," as seperator.
Now bullet speed value is seperated in calc and defined as number,
we can apply math operation like in/de-crease by fixed value or %,
here for every field that follows a field with entry "<ubBulletSpeed>".
When done hit ctrl+A and ctrl+C, then paste into hex editor for cleanup,
there search for string "<ubBulletSpeed>", in raw hex check which bytes were added by calc program before the actual value appears.
(if in doubt compare with original file)
Added bytes should be [09 09] for OO version 3.0.
Mark string of bytes which represent "<ubBulletSpeed>" text and the bytes added by calc, copy it.
Still in hex editor select to search&replace all instances,
paste string into search mask, replace with string where you deleted those bytes which were added by calc.
Repeat for [09h 09h "</bulletspeed>"], save from hex editor as working xml.

Will take some time to prepare, but even if unfamiliar with calc shorten subsequent edits also of other values once its set up.
Last not least the option to automatically update related values in other imported .xml files.


Besides, i use invisible bullets;)


...woah, man! I'm truly impressed! Still seens a lot of work but what a tutorial and I may do it anyway just to get used to it since I'm not even close of being a modder or coder myself but I do use to mess around Notepad++ for some lot for games editing and know how to change numbers like that can REALLY help me out! Thank you, townltu!



Born, play JA2, die, reload, die again, reload again.
Previous Topic: Which key is SUBTRACT?
Next Topic: How do I rest?
Goto Forum:
  


Current Time: Mon Jul 23 15:01:31 EEST 2018

Total time taken to generate the page: 0.00991 seconds