Skip to content

Commit

Permalink
[update] 删除历史遗留的无效字段
Browse files Browse the repository at this point in the history
  • Loading branch information
kiccer committed Dec 24, 2021
1 parent 5d6a9af commit edc93a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Soldier76.lua
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ end

-- SetRandomseed
function pubg.SetRandomseed ()
math.randomseed((pubg.isEffective and {GetRunningTime()} or {0})[1])
math.randomseed(GetRunningTime())
end

--[[ Before automatic press gun ]]
Expand Down

5 comments on commit edc93a3

@Ertinhow
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this change?

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on edc93a3 Dec 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this change?

Deleted the invalid field left by history, which caused the initial random number seed set to be the same every time the program was executed. Although this will not affect the function of the program, it is safer to set a different random number seed every time it runs.

@Ertinhow
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What number do you think is best? or it is fully random?

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on edc93a3 Dec 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rest assured that the random value will not affect the value you have adjusted. You can continue to use the current values.

@Panderma
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ADS = 100,
-- 腰射 | take aim
Aim = 0.55,
-- 二倍 | twice scope
scopeX2 = 1.3,
-- 三倍 | trebling scope
scopeX3 = 1.3,
-- 四倍 | quadruple scope
scopeX4 = 3.9,
-- 六倍 | sixfold scope
scopeX6 = 2.3,

how can i set it in game

Please sign in to comment.