Hey
This request sounds simple but I think it isn't.
I want a plugin to lock zombie classes and make them unlockable in the shop for large amounts of ammopacks. How the Plugin should work:
lets say we have 5 new zombie classes that can be edited or submitted via another plugin e.g. the climb zombie.
New zombie classes are listed in the extra items menu available for zombies.
Code:
1. antidote
2. madness
3. infection bomb
4. unlock "name6" [a]Ammo Packs
5. unlock "name7" [b]Ammo Packs
6. unlock "name8" [c]Ammo Packs
7. unlock "name9" [d]Ammo Packs
8. unlock "name10" [e]Ammo Packs
When a player wants to choose a class:
Code:
1. classic zombie
2. raptor zombie
3. poison zombie
4. big zombie
5. leech zombie
6. "name6" [locked]
7. "name7" [locked]
8. "name8" [locked]
9. "name9" [locked]
10. "name10" [locked]
I need this data stored via fvault.
Code:
new const g_vault_name[] = unlockclasses
unlockclasses.txt could be structured as follows:
(without formatting, this is just to visualize it)
Quote:
[steam id][0,0,0,0,0,1,0,1,1,1]
|
italic: these are the standard zoombieclasses, that are already unlocked (0).
bold: the bold "0" is a zombie class that was unlocked by player
all classes with "1" are still locked and appear in the "choose Zombie class" menu like this:
Code:
Gravedigger Zombie [locked]
But there's one thing that I respect too much to try it myself. I need a new variable in zp_zombieclasses.ini that says "0" or "1", while 0 stands for regularly available zombie classes and 1 stands for zombie classes that you need to unlock before being able to play with it.
- name 6-10 should change automatically if you change their names in the zombieclasses.ini.
- abcde stands for variables that you can change in the zp_extraitems.ini yourself.
- These items change the [locked]value of a zombie from 1 to 0 in the unlockclasses.txt NOT in the zp_zombieclasses.ini since this is needed that other players also have to unlock zombies
This is how it would appear in the zp_zombieclasses.ini:
Code:
[Gravedigger Zombie]
NAME = Gravedigger Zombie [locked]
INFO = HP + Speed + Knockback -
MODELS = zombie_source
CLAWMODEL = v_knife_zombie.mdl
HEALTH = 3000
SPEED = 230
GRAVITY = 1.00
KNOCKBACK = 0.65
LOCKED = 1
I hope somebody can do this. I started but I would fail miserably on doing this. If there are questions about this, I'd be glad to answer them.
Greetz