Left 4 Dead 2

Left 4 Dead 2

32 ratings
Capital! (Mutation Mode)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Co-op, Mutations
File Size
Posted
Updated
219.328 KB
26 Aug, 2023 @ 1:43pm
27 Aug, 2023 @ 1:38am
3 Change Notes ( view )

Subscribe to download
Capital! (Mutation Mode)

Description
WARNING: THIS MUTATION NEEDS IMPROVEMENT AND MAY NOT WORK STABLY

There are no more items/weapons in the levels, now you have to buy them.

For buy something, need write in chat next:: "buy ???"

??? - the technical name of the weapon/item.

Price list:
baseball_bat
150$
cricket_bat
200$
tonfa
50$
frying_pan
100$
golfclub
100$
electric_guitar
250$
shovel
250$
crowbar
250$
machete
400$
katana
800$
knife
250$
fireaxe
350$
pitchfork
400$
weapon_chainsaw
900$
weapon_pistol_magnum
500$
weapon_pistol
100$
weapon_sniper_military
500$
weapon_hunting_rifle
350$
weapon_sniper_awp
500$
weapon_sniper_scout
400$
weapon_shotgun_spas
500$
weapon_autoshotgun
500$
weapon_shotgun_chrome
300$
weapon_pumpshotgun
300$
weapon_rifle_desert
800$
weapon_rifle_ak47
400$
weapon_rifle
500$
weapon_rifle_sg552
500$
weapon_smg
100$
weapon_smg_silenced
100$
weapon_smg_mp5
300$
weapon_grenade_launcher
1000$
weapon_rifle_m60
1000$
weapon_molotov
250$
weapon_pipe_bomb
300$
weapon_vomitjar
100$
weapon_defibrillator
500$
weapon_first_aid_kit
300$
weapon_pain_pills
180$
weapon_adrenaline
120$
weapon_upgradepack_explosive
200$
weapon_upgradepack_incendiary
200$
laser
350$
ammo
250$
nuke
2000$

"nuke" - kills all nearby infected.

Money is given for killing infected:
-For killing the Tank and the Witch, money is given to everyone;
-For killing other special infected, money is given to the one who killed him..
-For every 10th common infected killed, money is given to the person who killed that 10th infected..

Price list:
Common infected
30$
Hunter
100$
Smoker
80$
Bommer
50$
Spitter
80$
Jockey
100$
Changer
90$
Witch
150$
Tank
500$

P.S. Okay, it's a poorly done mutation.
There is something I wanted to do but couldn't due to technical lack of knowledge of vscript.
The list of things I didn't do but wanted to do is as follows:
-pecial sounds (as I understand it, new sounds (without replacing the original ones), can only be added in campaigns);
-make it so that killing, for example, an common riot infected would pay more money (I couldn't find a function in vscript that would be responsible for this);
-Test what happens if a player leaves the server (I didn't dare ask to test friends);
-Teach the bots how to buy;
-Make the purchase menu through ClientMenu (but then I realized that I could accidentally break other mods that also use ClientMenu. So I didn't do it);

So there you go. This mutation is incomplete.
If I find solutions on how to implement what I wrote above, I might finalize it.

For now, this mutation is just for familiarization, not for comfortable play, alas, sorry.
Popular Discussions View All (1)
0
28 Aug, 2023 @ 6:21am
PINNED: Bugs and suggestions / Баги и предложения
TEPA6ANT
18 Comments
Получается вокализаторы тоже сломаются если изменять ClientMenu? Ждём версию для выживания!
TEPA6ANT  [author] 9 Jul @ 5:53am 
Вот касаемо исчезновения таблицы, впервые слышу. Потом проверю, т.к. далеко от компа. А по поводу выживания, я вырубил кажется. Это наверно надо отдельно делать
TEPA6ANT  [author] 9 Jul @ 5:47am 
Ну он кажется, сломанным. Но я хз, как делать меню покупки. Т.к. сам код мутации работает на стороне сервера и просто нет возможности отрисовать что-то на стороне конкретного игрока, только для всех. Если бы это было возможно, я бы делал и меню, и выводил отдельно для каждого его баланс. А так только чат можно и вывести для всех что-то на экран. А ClientMenu юзают другие моды и если я трону его, то сломаю другие моды что также его юзают (например, админ меню).
Или сломанно что-то другое?
Отсутствие меню не так критично, конечно неудобно в попыхах вводить нужную комманду, но как есть. Одна проблема точно есть, иногда после прохождения главы, пропадает таблица с балансом игроков, я с этим столкнулся после прохождения первой главы на Cold Stream, пришлось наугад покупать надеясь что хватит денег 😅. А сам режим прикольный, хотел бы спросить возможно ли активировать эту мутацию в Выживании?
Уже 2 года мутации, а до сих пор сломан >:(
igor.kerch2 3 Jun, 2024 @ 6:44am 
а что прикольная задумка, можно было бы тогда сделать зомби карту из колды и так играть в выживание :)
отец в 15 кредит50к 4 Feb, 2024 @ 10:41pm 
идея мне нравиться, удачи в разработке
TEPA6ANT  [author] 1 Dec, 2023 @ 3:38am 
3) Well, the prices were based on my preferences. My favoritesecondary weapon in the game are M16 and SCAR. As a primary weapon either Desert Eagle or Katana. Other guns I don't really like and throw away as I find my favorite. For this reason and prices are such that AK47 is cheaper than M16. That's how it works out. It may be wrong for some, but I'm waiting for other price suggestions to find that middle ground.
TEPA6ANT  [author] 1 Dec, 2023 @ 3:38am 
1) Originally, I wanted to make everyone see locally how much money he has (as in Counter-Strike). But it turned out that this is not possible, because the script of any mutator is processed on the server and the only way to send another player in the client is a text message (in chat or in the middle of the screen). Mutator script can only display on the screen something for all. So I decided to do as it turned out. Although my monitor resolution 1920x1080, but I play in windowed mode 1600x900, and under it oriented.
2) This is what I originally wanted to do as a menu from Counter-Strike. But ran into the problem that even though it can be done, but it can not be done separately for the mutator. Clientmenu.txt and radiamenu.txt are global files and if you rewrite them, the changes will be in all modes, which I did not like. And the only thing I could think of in this variant is chat.
Qazerman 30 Nov, 2023 @ 10:45am 
3) Obvious drawback: prices are set chaotically, but this is normal, more accurate values ​​are determined only through numerous tests and corrections;
How to solve the problem of purchasing bots? I don’t know, I don’t have quality for write AI for bots. There is a more radical method - do not allow bots into this mode at all. Only living players will be able to enter; if there are less than 4 of them, vacant characters will simply be kicked out of the match.