Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[CS:GO][MOD] BF2 Mod for CS:GO


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
BATTLEFIELD 2 MOD

for CS:GO

Introduction:

Hi,

I would like to share with You one of my biggest project I've ever done in my small scripting career.
This plugin is a CS:GO porting of well known BF2 Rank mod for CS 1.6 made by pRED.
I started it in winter 2020 with small experience from AMXX and completely no experience with SourceMod. I wanted to try myself in the knew environment, so my journey has begun. Got quite addicted and could spend hours daily, just rewriting old functions into new language. Difficulties started, when all libraries and includes were different or weren't at all, so I had to adapt stuff. Hundreds of hours spent at Alliedmods Wiki, lot of new knowledge gave me a chance to create something, not only adapt. And there we are, over a year and a half later, I'm sharing all my mess :P I managed to keep the main idea of the mod and added something of myself.

Please feel free to comment and fix anything You find wrong. I'm not a Pro in scripting and always open for different solutions.

About the Mod:
You can read on the website, what's inside the mod or ask in comments.
http://bf2mod-csgo.epizy.com (Please use translator as the description is in Polish :wink:)

Config
My aim was to give an end user fully and easily configurable modification, that doesn't require digging in the code. So here we are, hundreds of ConVars and open translations. Please, find the config file and do not hesitate to ask, if you have any questions.

Code:

// [ Battlefield 2 | Main Settings ] //
bf2_active 1 // (1|0) - On/Off Plugin (Default 1 - On)
bf2_badges_active 1 // (1|0) - On/Off badges (Default 1 - On)
bf2_badge_powers 1 // (1|0) - On/Off badge powers (Default 0 - Off)
bf2_admin_menu_flags "p" // Flags for an Admin Menu
bf2_ffa 0 // (1|0) - On/Off Attacking/Killing teammates to get bages and scores (Default 0 - Off)
bf2_min_players 1 // Minimum amout of players required to gain EXP and for Daily rewards (Standradowo 4)
bf2_new_penetration 1 // (1|0) - On/Off Custom armor penetration

// [ Battlefield 2 | HUD ] //
bf2_hud_title "CS:GO BF2 MOD by Eagle" // HUD Title
bf2_hud_seconds 10 // (Default 20 ) How many seconds form the round start the HUD will be displayed (0 - zawsze wlaczone)
bf2_hud_red 255 // ( Default 255 ) The amount of Red color in HUD (RGB)
bf2_hud_green 255 // ( Default 255 ) The amount of Green color in HUD (RGB)
bf2_hud_blue 15 // ( Default 15 ) The amount of Blue color in HUD (RGB)
bf2_ads_active 1 // (1|0) - On/Off ads in chat (Default 1 - On)
bf2_overlays 0 // (1|0) - On/Off Graphical overlays for new rank, badge etc. (Default 1 - On)
bf2_overlays_allranks 0 // (1|0) - On/Off  Individual overlay for each rank (Default 0 - Off). 0 - Only shows a text "New Rank"

// [ Battlefield 2 | VIP ]
bf2_vip_active 1 // On/Off VIP (Default 1 - On)
bf2_vip_flags "ao" // Flagi potrzebne dla Vipa
bf2_vip_exp_boost 0.3 // Mnoznik Expa dla vipa (Default 0.3 - 30%)
bf2_vip_armor_pen 0.1 // Ile procent obrazen ma przyjmowac armor (Default 0.1 - 10%) !!! Wymaga 'bf2_new_penetration' ustawione na 1 !!!

// [ Battlefield 2 | Free Badge ] //
bf2_free_badge_active 1 // (1|0) - On/Off Free Badge
bf2_free_badge_level 2 // (1|2|3|4) - Free Badge level
bf2_free_badge_amount 1 // (1|2|...|20) - The amount of free badges per player

// [ Battlefield 2 | Shop ] //
bf2_shop_kills 10 // Price for kills (Default 10 - 10 Diamonds)
bf2_shop_bronze 15 // Price for Bronze medal (Default 15 - 15 Diamonds)
bf2_shop_silver 30 // Price for Silver medal (Default 30 - 30 Diamonds)
bf2_shop_gold 50 // Price for Gold medal (Default 50 - 50 Diamonds)
bf2_shop_reach 15 // Price for Achievement (Default 15 - 15 Diamonds)
bf2_shop_mvp 5 // Price for MVP Star (Default 5 - 5 Diamonds)
bf2_shop_badge_1 50 // Price for 1st Level Badge (Default 50 - 50 Diamonds)
bf2_shop_badge_2 100 // Price for 2nd Level Badge (Default 100 - 100 Diamonds)
bf2_shop_badge_3 150 // Price for 3rd Level Badge (Default 150 - 150 Diamonds)
bf2_shop_badge_4 200 // Price for 4th Level Badge (Default 200 - 200 Diamonds)
bf2_cost_exp1 30 // Price for 1st EXP draw (50 - 500 EXP) (Default 30 - 30 Diamonds)
bf2_cost_exp2 60 // Price for 2nd EXP draw (500 - 5 000 EXP) (Default 60 - 60 Diamonds)
bf2_cost_exp3 90 // Price for 3rd EXP draw (5 000 - 50 000 EXP) (Default 90 - 90 Diamonds)
bf2_cost_exp4 4000 // Price for 4th EXP draw (10 - 500 EXP) (Default 4000 - 4000 $)
bf2_cost_exp5 10000 // Price for 5th EXP draw (50 - 750 EXP) (Default 10000 - 10000 $)
bf2_cost_exp6 16000 // Price for 6th EXP draw (100 - 1000 EXP) (Default 16000 - 16000 $)

// [ Battlefield 2 | Diamonds] //
bf2_give_diamonds 1 // (1|0) - On/Off Exchangind diamonds between players (Default 1 - On)
bf2_max_times_give 1 // How many times per mapch player can give diamonds (Default 1)
bf2_reach_diamonds 5 // The amount of diamonds for gaining the achievement (Default - 5)
bf2_all_reach_diamonds 50 // The amount of diamonds for collecting all achievements (Default - 50)
bf2_min_kills_bronze 10 // Minimum kills required to receive diamonds for getting a Bronze medal (Default 10)
bf2_min_kills_silver 15 // Minimum kills required to receive diamonds for getting a Silver medal (Default 15)
bf2_min_kills_gold 20 // Minimum kills required to receive diamonds for getting a Gold medal (Default 20)
bf2_diamonds_bronze 3 // The amount of diamonds received for Bronze medal (Default - 3)
bf2_diamonds_silver 5 // The amount of diamonds received for Silver medal (Default - 5)
bf2_diamonds_gold 10 // iThe amount of diamonds received for Gold medal (Default - 10)

// [ Battlefield 2 | EXP ] //
bf2_exp_speed 1.0 // ( Default "1.0") Speed of gain the EXP (10.0 - Slow | 0.1 Fast)
bf2_killstreak_active 1 // On/Off Killstreak EXP (From 3rd kill onwards, +10% EXP for each next)
bf2_dmg_exp 4 // ( Default "4") The amount of EXP for 15 dmg dealt
bf2_min_kill_exp 30 // ( Default "30") Min EXP for kill
bf2_max_kill_exp 70 // ( Default "250") Max EXP for kill
bf2_hs_exp 90 // ( Default "40") Headshot EXP
bf2_teamkill_exp "-300" // ( Default "-300") Penalty EXP for killing a teammate
bf2_assist_exp 25 // (Default "25") Assist EXP
bf2_bomb_exp 70 // ( Default "70") Plant EXP
bf2_explode_exp 50 // ( Default "50") Explosion EXP
bf2_host_exp 20 // ( Default "20") Rescuing a hostage EXP
bf2_team_host_exp 80 // ( Default "80") Team hostage rescue EXP
bf2_all_host_exp 100 // ( Default "100") Rescuing all hostages EXP
bf2_round_win_exp 100 // ( Default "100") Surviving a round EXP
bf2_round_win_team_exp 50 // ( Default "50") Dead players of the team which won round EXP
bf2_round_survive_exp 30 // ( Default "30") Alive players of the team which won round EXP
bf2_reach_exp 1000 // ( Default "1000") Achievement EXP
bf2_all_reach_exp 10000 // ( Default "10000") All achievements EXP
bf2_1place_exp 3000 // ( Default "3000") 1st place in scoreboard at the end of the match EXP
bf2_2place_exp 2000 // ( Default "2000") 2nd place in scoreboard at the end of the match EXP
bf2_3place_exp 1000 // ( Default "1000") 3rd place in scoreboard at the end of the match EXP

// [ Battlefield 2 | Night EXP ] //
bf2_night_exp_active 1 // (1|0) - On/Off Night EXP
bf2_night_exp_start "20:00" // Time when Night EXP begins (24 hours clock)
bf2_night_exp_end "4:00" // Time when Night EXP ends (24 hours clock)
bf2_night_exp_amount 0.2 // ( Default 0.2 - 20%) Bonus EXP during Night EXP

// [ Battlefield 2 | Busy Server ] //
bf2_more_players_active 1 // (1|0) - On/Off Busy Server EXP
bf2_more_players_amount 80 // ( Default 80 %) The percentage of all slots to be filled for Busy Server to work
bf2_more_players_exp 100 // ( Default 100) The amount of EXP on start of each round

// [ Battlefield 2 | Skills ] //
bf2_skills_active 1 // (Default "1") On/Off Umiejetnosci w grze
bf2_skill1_lvl 10 // (Default "10") Level required for 1st skill
bf2_skill2_lvl 25 // (Default "25") Level required for 2nd skill
bf2_skill3_lvl 40 // (Default "40") Level required for 3rd skill
bf2_skill4_lvl 55 // (Default "55") Level required for 4th skill
bf2_skill5_lvl 70 // (Default "70") Level required for 5th skill
bf2_skill6_lvl 85 // (Default "85") Level required for 6th skill
bf2_skill7_lvl 100 // (Default "100") Level required for 7th skill
bf2_skill8_lvl 115 // (Default "115") Level required for 8th skill
bf2_skill9_lvl 130 // (Default "130") Level required for 9th skill
bf2_skill10_lvl 145 // (Default "145") Level required for 10th skill

// [ Battlefield 2 | Quests ] //
bf2_quests_enabled 1 // (1|0) - On/Off Quests
bf2_quests_skip_cost 10 // Price for skiping the quest in shop(Default 10 - 10 Diamonds)
bf2_quests_dynamic_cost 1 // (1|0) - On/Off dynamic Quest Skip pricing (Every 10 quests, the price increases by 5 Diamonds)

// [ Battlefield 2 | Daily Rewards ] //
bf2_daily_rewards 1 // (1|0) - On/Off Daily Rewards
bf2_daily_req_time 15 // ( Default 30) - The amount of minutes to be spend daily to receive the reward

// [ Battlefield 2 | Badges ] //
bf2_badge_power_1 1 // On/Off odznake (Default 1)
bf2_badge_power_2 1 // On/Off odznake (Default 1)
bf2_badge_power_3 1 // On/Off odznake (Default 1)
bf2_badge_power_4 1 // On/Off odznake (Default 1)
bf2_badge_power_5 1 // On/Off odznake (Default 1)
bf2_badge_power_6 1 // On/Off odznake (Default 1)
bf2_badge_power_7 1 // On/Off odznake (Default 1)
bf2_badge_power_8 1 // On/Off odznake (Default 1)
bf2_badge_power_9 1 // On/Off odznake (Default 1)
bf2_badge_power_10 1 // On/Off odznake (Default 1)
bf2_badge_power_11 1 // On/Off odznake (Default 1)
bf2_badge_power_12 1 // On/Off odznake (Default 1)
bf2_badge_power_13 1 // On/Off odznake (Default 1)
bf2_badge_power_14 1 // On/Off odznake (Default 1)

// ***********[ Battlefield 2 | Badge Powers ]*********** //

// [Badge 1 - HP steal with knife] //
bf2_recover_hp_1 20 // The percentage of knife damage transformed into HP on 1st Badge Level (Default - 20%)
bf2_recover_hp_2 40 // The percentage of knife damage transformed into HP on 2nd Badge Level (Default - 40%)
bf2_recover_hp_3 60 // The percentage of knife damage transformed into HP on 3rd Badge Level (Default - 60%)
bf2_recover_hp_4 80 // The percentage of knife damage transformed into HP on 4th Badge Level (Default - 80%)
// [Badge 2 - Bonus round money] //
bf2_money_round 2 // Number of round when Money starts to be given
bf2_money_1 200 // Bonus Money on round start on 1st Badge Level (Default 200$)
bf2_money_2 400 // Bonus Money on round start on 2nd Badge Level (Default 400$)
bf2_money_3 600 // Bonus Money on round start on 3rd Badge Level (Default 600$)
bf2_money_4 800 // Bonus Money on round start on 4th Badge Level (Default 800$)
// [Badge 3 - Bonus round HP] //
bf2_health_1 10 // Bonus HP on spawn on 1st Badge Level (Default +10HP)
bf2_health_2 20 // Bonus HP on spawn on 2nd Badge Level (Default +20HP)
bf2_health_3 30 // Bonus HP on spawn on 3rd Badge Level (Default +30HP)
bf2_health_4 40 // Bonus HP on spawn on 4th Badge Level (Default +40HP)
// [Badge 4 - Free Sniper Rifle] //
bf2_damage_awp 0.05 // Bonus damage multiplier from AWP and SSG08 (Default 0.06 - 6%/12%/18%/24%)
bf2_awp_round 3 // Number of round when AWP starts to be given
bf2_awp_chance_1 25 // Chance for free AWP on 1st Badge Level (Default AWP 25% | Scout 75%)
bf2_awp_chance_2 50 // Chance for free AWP on 2nd Badge Level (Default AWP 50%  | Scout 50%)
bf2_awp_chance_3 75 // Chance for free AWP on 3rd Badge Level (Default AWP 75% | Scout 25%)
bf2_awp_chance_4 100 // Chance for free AWP on 4th Badge Level (Default AWP 100%)
// [Badge 5 - All weapons bonus dmg] //
bf2_damage_all 0.04 // Bonus damage multiplier from All Weapons  (Default 0.04 - 4%/8%/12%/16%)
// [Badge 6 - Free HE] //
bf2_damage_he 0.1 // Bonus damage multiplier from HE (Default 0.1 - 10%/20%/30%/40%)
bf2_he_chance_1 25 // Chance for free Deagle on 1st Badge (Default 25%)
bf2_he_chance_2 50 // Chance for free Deagle on 2nd Badge (Default 50%)
bf2_he_chance_3 75 // Chance for free Deagle on 3rd Badge (Default 75%)
bf2_he_chance_4 100 // Chance for free Deagle on 4th Badge (Default 100%)
// [Badge 7 - Invisibility] //
bf2_invis_1 70 // Visibility with knife on 1st Badge Level (Default - 70% Less visible)
bf2_invis_2 80 // Visibility with knife on 2nd Badge Level (Default - 80% Less visible)
bf2_invis_3 90 // Visibility with knife on 3rd Badge Level (Default - 90% Less visible)
bf2_invis_4 97 // Visibility with knife on 4th Badge Level (Default - 97% Less visible)
// [Badge 8 - Speed] //
bf2_speed_1 10 // Bonus movement speed on 1st Badge Level (Default - +10%)
bf2_speed_2 15 // Bonus movement speed on 2nd Badge Level (Default - +15%)
bf2_speed_3 20 // Bonus movement speed on 3rd Badge Level (Default - +20%)
bf2_speed_4 25 // Bonus movement speed on 4th Badge Level (Default - +25%)
// [Badge 9 - Gravity with knife] //
bf2_gravity_1 10 // Gravity on 1st Badge Level (Default - 10% Less gravity)
bf2_gravity_2 20 // Gravity on 2nd Badge Level (Default - 20% Less gravity)
bf2_gravity_3 30 // Gravity on 3rd Badge Level (Default - 30% Less gravity)
bf2_gravity_4 40 // Gravity on 4th Badge Level (Default - 40% Less gravity)
// [Badge 10 - Medkit] //
bf2_first_aid_1 5 // The amount of HP healed on 1st Badge Level (Default 5HP)
bf2_first_aid_2 10 // The amount of HP healed on 2nd Badge Level (Default 10HP)
bf2_first_aid_3 15 // The amount of HP healed on 3rd Badge Level (Default 15HP)
bf2_first_aid_4 20 // The amount of HP healed on 4th Badge Level (Default 20HP)
// [Badge 11 - Free Deagle] //
bf2_damage_deagle 0.05 // Bonus damage multiplier from Deagle (Default 0.06 - 6%/12%/18%/24%)
bf2_deagle_chance_1 25 // Chance for free Deagle on 1st Badge Level (Default 25%)
bf2_deagle_chance_2 50 // Chance for free Deagle on 2nd Badge Level (Default 50%)
bf2_deagle_chance_3 75 // Chance for free Deagle on 3rd Badge Level (Default 75%)
bf2_deagle_chance_4 100 // Chance for free Deagle on 4th Badge Level (Default 100%)
// [Badge 12 - Lootcrate] //
bf2_lootcrate_chance_1 30 // Chance for dropping a Lootcrate on 1st Badge Level (Default 30%)
bf2_lootcrate_chance_2 50 // Chance for dropping a Lootcrate on 2nd Badge Level (Default 50%)
bf2_lootcrate_chance_3 70 // Chance for dropping a Lootcrate on 3rd Badge Level (Default 60%)
bf2_lootcrate_chance_4 90 // Chance for dropping a Lootcrate on 4th Badge Level (Default 90%)
bf2_lootcrate_max_exp 300 // ( Default "300") Max EXP in the Lootcrate
bf2_lootcrate_hp 10 // The amount of HP in the Lootcrate (Default 10 HP)
bf2_lootcrate_money 100 // The amount of money in Lootcrate (Default 100$)
// [Badge 13 - Ultra Armor] //
bf2_ua_chance_1 15 // Chance for Ultra Armor on 1st Badge Level (Default 15%)
bf2_ua_chance_2 30 // Chance for Ultra Armor on 2nd Badge Level (Default 30%)
bf2_ua_chance_3 45 // Chance for Ultra Armor on 3rd Badge Level (Default 45%)
bf2_ua_chance_4 60 // Chance for Ultra Armor on 4th Badge Level (Default 60%)
// [Badge 14 - Resurection] //
bf2_respawn_chance_1 30 // Chance for respawn on 1st Badge Level (Default 30%)
bf2_respawn_chance_2 50 // Chance for respawn on 2nd Badge Level (Default 50%)
bf2_respawn_chance_3 70 // Chance for respawn on 3rd Badge Level (Default 70%)
bf2_respawn_chance_4 90 // Chance for respawn on 4th Badge Level (Default 90%)
bf2_respawn_cost_1 50 // Respawn cost on 1st and 2nd Badge Level (Default 50 Dog Tags)
bf2_respawn_cost_2 200 // Respawn cost on 3rd and 4th Badge Level (Default 100 Dog Tags)
// [Rewards for badges] //
bf2_armor_1 50 // The amount of armor for collecting 20% of all active badges (Default 50 - 50 Armor)
bf2_armor_2 100 // The amount of armor for collecting 40% of all active badges (Default 100 - 100 Armor)
bf2_armor_3 150 // The amount of armor for collecting 60% of all active badges (Default 150 - 150 Armor)
bf2_armor_4 200 // The amount of armor for collecting 80% of all active badges (Default 200 - 200 Armor)
bf2_armor_5 250 // The amount of armor for collecting 100% of all active badges (Default 250 - 250 Armor)

// [ Battlefield 2 | End ] //

//Recommended settings
mp_do_warmup_period 0
mp_do_warmup_offine 0
mp_warmuptime 0
mp_timelimit 15
mp_maxrounds 0
mp_roundtime 3
mp_roundtime_defuse 3
mp_roundtime_hostage 3
mp_buytime 45
mp_freezetime 5
mp_friendlyfire 1
mp_solid_teammates 1
sv_voiceenable 1
mp_spectators_max 2
mp_join_grace_time 15
mp_free_armor 0
sv_disable_immunity_alpha 1

There are separate files for command's language under /scripting/bf2/lang/ folder. At the moment you can find Polish and English versions, but as soon as any other will come I will update the download. To change commands language, You have to find your position (line 430 in bf2_core.sp) and comment others. After making changes the compilation is required.

Extras
Mod comes with 2 additional plugins: Daily Rewards and Tasks (Quests). Configuration for them is quite similar and easy. Add as many entries as you need to a text file inside config folder. Just use the same scheme.

NOTE
This plugin require Chat Processor to work, as well as it's include to compile. You may need multicolors include too.


If You like this mod, do not hesitate to buy me a coffee :oops:
Donate


Hope You enjoy and have a good fun with this mod. Looking forward to hear your opinions and questions.

:)

Attached Files
File Type: zip BF2GO_EN.zip (3.15 MB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...