[HELP] Giving Weapons Random Criticals
17 Sep 2017, 01:09 AM
#1

Posts: 59
Working on my mod, and I want to give certain weapons a critical chance when it penetrates. I looked at the sniper rifle weapon file along with the Riflemen AT Grenade. I practically copied the one from the AT Grenade. I gave the critical a small chance. Yet, I feel for being a 5% it happens almost too frequently. Any help is appreciated.
17 Sep 2017, 09:24 AM
#2


Posts: 817 | Subs: 5
How many choices do you have? and which weights?
The weights depend on the total sum of all weights in the random_action. If you set the weight in a random_choice at 5, but you have no other options, then it's actually 100%. So the real chance is:
your weight / the sum of all weights.
If you want only one critical, then make another empty choice with the weight 95.
The weights depend on the total sum of all weights in the random_action. If you set the weight in a random_choice at 5, but you have no other options, then it's actually 100%. So the real chance is:
your weight / the sum of all weights.
If you want only one critical, then make another empty choice with the weight 95.
17 Sep 2017, 10:22 AM
#3

Posts: 59
How many choices do you have? and which weights?
The weights depend on the total sum of all weights in the random_action. If you set the weight in a random_choice at 5, but you have no other options, then it's actually 100%. So the real chance is:
your weight / the sum of all weights.
If you want only one critical, then make another empty choice with the weight 95.
Ok, I did not know about the random_choice needing another weight to consider the chance. I will have to add an empty action. Thank you.
PAGES (1)

1 user is browsing this thread:
1 guest
Livestreams
![]() |
![]() |
![]() |
81 | ||
![]() |
![]() |
![]() |
30 | ||
![]() |
![]() |
![]() |
23 | ||
![]() |
![]() |
![]() |
413 | ||
![]() |
![]() |
![]() |
178 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.59682.879+10
- 2.43163.872+9
- 3.9533.742-2
- 4.14939.793+8
- 5.290162.642+8
- 6.14348.749-1
- 7.14565.690+13
- 8.18151.780+4
- 9.18678.705+1
- 10.814466.636+2
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
14

Download
1379
Board Info
345 users are online:
345 guests
2 posts in the last 24h
13 posts in the last week
41 posts in the last month
13 posts in the last week
41 posts in the last month
Registered members: 54040
Welcome our newest member, vbfwbcorg
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, vbfwbcorg
Most online: 2043 users on 29 Oct 2023, 01:04 AM