CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 1
Call of Duty: Black Ops 1 Mods and Scripts
Call of Duty: Black Ops 1 Scripts
What this Script Means help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BlackOpsModder" data-source="post: 27123" data-attributes="member: 17964"><p>I need help with what this script exactly means it has something to do with the Waffle in box, but I don`t got it what does exactly it means...</p><p>[CODE]default_tesla_weighting_func()</p><p>{</p><p> num_to_add = 1;</p><p> if( isDefined( level.pulls_since_last_tesla_gun ) )</p><p> {</p><p> // player has dropped the tesla for another weapon, so we set all future polls to 20%</p><p> if( isDefined(level.player_drops_tesla_gun) && level.player_drops_tesla_gun == true )</p><p> { </p><p> num_to_add += int(.2 * level.zombie_include_weapons.size); </p><p> }</p><p> </p><p> // player has not seen tesla gun in late rounds</p><p> if( !isDefined(level.player_seen_tesla_gun) || level.player_seen_tesla_gun == false )</p><p> {</p><p> // after round 10 the Tesla gun percentage increases to 20%</p><p> if( level.round_number > 10 )</p><p> {</p><p> num_to_add += int(.2 * level.zombie_include_weapons.size);</p><p> } </p><p> // after round 5 the Tesla gun percentage increases to 15%</p><p> else if( level.round_number > 5 )</p><p> {</p><p> // calculate the number of times we have to add it to the array to get the desired percent</p><p> num_to_add += int(.15 * level.zombie_include_weapons.size);</p><p> } </p><p> }</p><p> }</p><p> return num_to_add;</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="BlackOpsModder, post: 27123, member: 17964"] I need help with what this script exactly means it has something to do with the Waffle in box, but I don`t got it what does exactly it means... [CODE]default_tesla_weighting_func() { num_to_add = 1; if( isDefined( level.pulls_since_last_tesla_gun ) ) { // player has dropped the tesla for another weapon, so we set all future polls to 20% if( isDefined(level.player_drops_tesla_gun) && level.player_drops_tesla_gun == true ) { num_to_add += int(.2 * level.zombie_include_weapons.size); } // player has not seen tesla gun in late rounds if( !isDefined(level.player_seen_tesla_gun) || level.player_seen_tesla_gun == false ) { // after round 10 the Tesla gun percentage increases to 20% if( level.round_number > 10 ) { num_to_add += int(.2 * level.zombie_include_weapons.size); } // after round 5 the Tesla gun percentage increases to 15% else if( level.round_number > 5 ) { // calculate the number of times we have to add it to the array to get the desired percent num_to_add += int(.15 * level.zombie_include_weapons.size); } } } return num_to_add; }[/CODE] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 1
Call of Duty: Black Ops 1 Mods and Scripts
Call of Duty: Black Ops 1 Scripts
What this Script Means help
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top