Raised This Month: $51 Target: $400
 12% 

Suggestion / Subplugin Request [ZP] Bomb hand model


Post New Thread Reply   
 
Thread Tools Display Modes
rubee
Senior Member
Join Date: Oct 2009
Location: party rocking
Old 07-02-2011 , 17:01   Re: [ZP] Bomb hand model
Reply With Quote #21

same steps u.u

all changes made:

Globals
PHP Code:
new Array:g_zclass_bombmodel, Array:g_zclass2_bombmodel 
in public plugin_precache()

PHP Code:
g_zclass_bombmodel ArrayCreate(321)
g_zclass2_bombmodel ArrayCreate(321
in replace_weapon_models(id, weaponid)

PHP Code:
case CSW_HEGRENADE// Infection bomb or fire grenade
        
{
            if (
g_zombie[id])
            {
                static 
bombmodel[100]
                
ArrayGetString(g_zclass_bombmodelg_zombieclass[id], bombmodelcharsmax(bombmodel))
                
format(clawmodelcharsmax(bombmodel), "models/zombie_plague/%s"bombmodel)
                
set_pev(idpev_viewmodel2bombmodel)
            }
            else
                
set_pev(idpev_viewmodel2model_grenade_fire)
        } 
in load_customization_from_files()

PHP Code:
else if (equal(key"BOMBMODEL"))
        
ArrayPushString(g_zclass2_bombmodelvalue
in save_customization()

PHP Code:
// Add bombmodel
    
ArrayGetString(g_zclass_bombmodelibuffercharsmax(buffer))
    
format(buffercharsmax(buffer), "^nBOMBMODEL = %s"buffer)
    
fputs(filebuffer)

    
ArrayDestroy(g_zclass2_bombmodel

and finally the native
PHP Code:
public native_register_zombie_class(const name[], const info[], const model[], const clawmodel[], const bombmodel[], hpspeedFloat:gravityFloat:knockback)

    
param_convert(5)
    
ArrayPushString(g_zclass_bombmodelbombmodel)

    
// Replace bombmodel
    
ArrayGetString(g_zclass2_bombmodelibuffercharsmax(buffer))
    
ArraySetString(g_zclass_bombmodelg_zclass_ibuffer)
        
    
// Precache bombmodel
    
formatex(prec_mdlcharsmax(prec_mdl), "models/zombie_plague/%s"buffer)
    
engfunc(EngFunc_PrecacheModelprec_mdl)

    
// Precache default bombmodel
    
formatex(prec_mdlcharsmax(prec_mdl), "models/zombie_plague/%s"bombmodel
later
- edit your include file (zombieplague.inc) with const bombmodel[] (native)
- compile again your zclasses (adding the bomb model)
- delete all content from zp_zombieclasses.ini
run the game
__________________


rubee is offline
Killer zm
Senior Member
Join Date: Jun 2011
Old 07-02-2011 , 17:07   Re: [ZP] Bomb hand model
Reply With Quote #22

Thanks very much I will try it !
Killer zm is offline
Killer zm
Senior Member
Join Date: Jun 2011
Old 07-03-2011 , 09:42   Re: [ZP] Bomb hand model
Reply With Quote #23

Not work when try to compile a zombie classe tell me this
Warning: Tag mismatch on line 19
Error: Argument type mismatch (argument 5) on line 38
I deleted from zp_zombieclasses.ini all but I still have that error. What to do??
Killer zm is offline
Killer zm
Senior Member
Join Date: Jun 2011
Old 07-03-2011 , 12:29   Re: [ZP] Bomb hand model
Reply With Quote #24

I found the problem . It's because I use Zombie xp with levels .Can you tell me what to modify in Zombie xp?
Killer zm is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 07-03-2011 , 12:31   Re: [ZP] Bomb hand model
Reply With Quote #25

Quote:
Originally Posted by Killer zm View Post
I found the problem . It's because I use Zombie xp with levels .Can you tell me what to modify in Zombie xp?
i don't know, use gunxp instead of zombie xp
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
Killer zm
Senior Member
Join Date: Jun 2011
Old 07-03-2011 , 13:15   Re: [ZP] Bomb hand model
Reply With Quote #26

rubee you can help me ??
It give me whnen try to compile zombie classes this error
Argument type mismatch (argument 5) on line 38
Killer zm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode