View Single Post
redomin8
Member
Join Date: Feb 2005
Old 01-18-2009 , 23:52   Re: [ZP] Zombie XP - Human Classes & Leveling Up - v0.7a
Reply With Quote #6

Nah, I'm from Los Angeles, CA.
What I mean by better weapons, is the beginner level human classes start with, say AK-47 and a basic secondary, or a Colt, etc.

As you level up, classes start to get stronger (higher health, faster speeds, lower gravity) and they also give you more weapons (grenades, etc).

One of the neatest things, is that you can easily give multiple primary weapons to a stronger human class just by adding its enum. These are all found in zombiexp.inc, but here's a copy-paste.

PHP Code:
enum
{
    
WEAPON_GALIL 1,
    
WEAPON_FAMAS,
    
WEAPON_M4A1,
    
WEAPON_AK47,
    
WEAPON_SG552,
    
WEAPON_AUG,
    
WEAPON_SCOUT,
    
WEAPON_M3,
    
WEAPON_XM1040,
    
WEAPON_TMP,
    
WEAPON_MAC10,
    
WEAPON_UMP45,
    
WEAPON_MP5NAVY,
    
WEAPON_P90,
    
WEAPON_GLOCK18,
    
WEAPON_USP,
    
WEAPON_P228,
    
WEAPON_DEAGLE,
    
WEAPON_FIVESEVEN,
    
WEAPON_ELITE,
    
WEAPON_HEGRENADE,
    
WEAPON_FLASHBANG,
    
WEAPON_SMOKEGRENADE

By simply changing:
PHP Code:
new const hclass_weapons[] = { WEAPON_MP5NAVYWEAPON_P228 // weapons chosen 
To:
PHP Code:
new const hclass_weapons[] = { WEAPON_AK47WEAPON_MP5NAVYWEAPON_P228 // weapons chosen 
You just gave them two primary weapons. The same is true for WEAPON_HEGRENADE, just add a comma at the end and paste that.
__________________
"Your momma's so dumb she required a cvar to turn the tv on." - Inspired by Speed!

Last edited by redomin8; 01-19-2009 at 18:39.
redomin8 is offline
Send a message via AIM to redomin8