xD I will, but wait before I can get things in order, I've been rewriting quite some stuff, I've made a more complex way to setup the wearables, allowing you to select wich classes can use them, if only admins can or wich are the forceable defaults for common users or admins (for the armband thing).
Also, I'm increasing the number of wearable items at once to 3 so you can, for example, wear a helmet and an armor at the same time. I still need to check if this works properly though.
Example of the new style of setup:
PHP Code:
/*****************************************************************************
PROPERTIES TABLE
******************************************************************************
Flags:
+---------------------+------------------------------------------------------+
| FLAGS | DESCRIPTION |
+---------------------+------------------------------------------------------+
| DEFAULT | Sets the wearable as default for common users |
| ADMIN_DEFAULT | Sets the wearable as the admin default |
| ADMIN_ONLY | This hat is wearable only by admins |
| USE_TRANSLATION | Use translation tables for the name of this item |
+---------------------+------------------------------------------------------+
Classes:
+---------------------+---------------------+---------------------+
| CLASS | CLASS | CLASS |
+---------------------+---------------------+---------------------+
| SCOUT | SNIPER | SOLDIER |
| DEMOMAN | MEDIC | HEAVY |
| PYRO | SPY | ENGINEER |
+---------------------+---------------------+---------------------+
| ALL |
+---------------------+
Slots:
+---------------------+
| SLOTS |
+---------------------+
| 0 |
| 1 |
| 2 |
+---------------------+
*****************************************************************************/
"Hats"
{
"Afro"
{
"model" "models/player/items/demo/demo_afro.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "DEMOMAN"
"slot" "0"
}
"MiningHat"
{
"model" "models/player/items/engineer/mining_hat.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "ENGINEER"
"slot" "0"
}
"SpyHat"
{
"model" "models/player/items/spy/spy_hat.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "SPY"
"slot" "0"
}
"FootballHelmet"
{
"model" "models/player/items/heavy/football_helmet.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "HEAVY"
"slot" "0"
}
"MedicHelmet"
{
"model" "models/player/items/medic/medic_helmet.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "HEAVY"
"slot" "0"
}
"PyroHat"
{
"model" "models/player/items/pyro/pyro_hat.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "PYRO"
"slot" "0"
}
"BatterHelmet"
{
"model" "models/player/items/scout/batter_helmet.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "HEAVY"
"slot" "0"
}
"ToothHat"
{
"model" "models/player/items/sniper/tooth_hat.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "SNIPER"
"slot" "0"
}
"SoldierHat"
{
"model" "models/player/items/soldier/soldier_hat.mdl"
"flags" "DEFAULT, USE_TRANSLATION"
"classes" "SOLDIER"
"slot" "0"
}
}
__________________