[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)
0 user is browsing this thread:
Livestreams
10 | |||||
17 | |||||
13 | |||||
2 | |||||
2 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1101614.642+2
- 5.305114.728+1
- 6.916405.693-2
- 7.271108.715+22
- 8.721440.621+3
- 9.1041674.607-2
- 10.17146.788+1
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1231
Board Info
866 users are online:
866 guests
2 posts in the last 24h
8 posts in the last week
40 posts in the last month
8 posts in the last week
40 posts in the last month
Registered members: 49072
Welcome our newest member, Durddcdy23
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Durddcdy23
Most online: 2043 users on 29 Oct 2023, 01:04 AM