[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: 813 | 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
48 | |||||
47 | |||||
28 | |||||
2 | |||||
120 | |||||
19 | |||||
14 | |||||
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.968562.633+23
- 2.555227.710+11
- 3.29446.865-1
- 4.265143.650+9
- 5.276110.715+14
- 6.250150.625+11
- 7.22491.711+11
- 8.250135.649+1
- 9.8119.810+1
- 10.13556.707+3
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
7
Download
761
Board Info
550 users are online:
1 member and 549 guests
aerafield
aerafield
4 posts in the last 24h
39 posts in the last week
137 posts in the last month
39 posts in the last week
137 posts in the last month
Registered members: 45130
Welcome our newest member, mobilervmaintenance
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, mobilervmaintenance
Most online: 2043 users on 29 Oct 2023, 01:04 AM