AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item : Force Field Grenade [v2.3] [Update 08-14-12] (https://forums.alliedmods.net/showthread.php?t=111102)

lucas_7_94 12-06-2009 23:51

[ZP] Extra Item : Force Field Grenade [v2.3] [Update 08-14-12]
 
2 Attachment(s)
[ZP] Extra Item : Force Field Grenade
For Humans.


>>Description : By purchasing this item, will give you a shell with special effect style bubble, I use the plugin "Sn!ff3r"and releases.

>>Customization:
You can edit it your way.
This plugin has 2 defines.

PHP Code:

//#define CAMPO_TASK
#define CAMPO_ROUND 

In this case, the effect lasts 1 round whole.

In This Case :
PHP Code:

#define CAMPO_TASK
//#define CAMPO_ROUND 

This effect lasts 15 sec.

NEW!:

PHP Code:

/* Color Defines */
//#define RANDOM_COLOR
#define ONE_COLOR
/* End Color Defines*/ 

If you choose RANDOM_COLOR, the color will be chosen at random.
ONE_COLOR If you choose, you can choose your color by editing this line.

PHP Code:

new Float:CampoColors[3] = { 255.0 0.0 0.0 

PD: Only supports numbers with a comma.

// You can not use whole numbers, only with a comma.
[/php]>>Note:
This plugin has been tested on versions 4.3 and 4.2 From Zombie Plague , and work Perfectly.

Credits :

Code:

Sn!ffer: I started this plugin from your plugin
Speed! : I recommended using pev_velocity and the model!.
Javivi: He gave me a few tips for this plugin = D.
Alan_el_more: He helped me to apply the model using the engine include.
xPaw:For help to implement the model =D .
Raddish: Help me with touch.

Updates Info:
  • v1.5 - First Release
  • v2.0 - Some bugs fixeds
  • v2.1 - Change some bugs with entity out of range and optimization with changing model.
  • v2.2 - Use bits , check source , has new modifications to do.
Images :

http://www.picturinga.com.ar/images/shield1.jpg
http://www.picturinga.com.ar/images/shield2.jpg
new W_MODEL:

http://img85.**************/img85/1731/wmodel.jpg


Version 2.1 downloads : 1721.


Plugin :

Raddish 12-07-2009 00:18

Re: [ZP] Extra Item : Force Field Grenade
 
Nice!!
pd: es el q postie y lo modificaste noxD?

01101101 12-07-2009 02:19

Re: [ZP] Extra Item : Force Field Grenade
 
Ese model lo hice yo y mi modeler -.-

Kiske 12-07-2009 02:39

Re: [ZP] Extra Item : Force Field Grenade
 
Sorry for speak Spanish:

Ese Plugin esta Bug Lucas..
Cuando el Zombie toca la Bola de un lado, atraviesa toda la bola x el Centro hasta llegar al otro, encima te empuja para abajo y te sacas banda de vida :S

01101101 12-07-2009 05:45

Re: [ZP] Extra Item : Force Field Grenade
 
Quote:

Originally Posted by Kiske (Post 1009145)
Sorry for speak Spanish:

Ese Plugin esta Bug Lucas..
Cuando el Zombie toca la Bola de un lado, atraviesa toda la bola x el Centro hasta llegar al otro, encima te empuja para abajo y te sacas banda de vida :S

I translate what he said since he doesn't know english:

Quote:

THIS PLUGIN IS SO SHITTY; SO FUCKING USELESS! FUCK YOU
When the zombie touches the ball, he gets through it going through the center, till getting to the other side, as if that was not enough, it pulls you to the floor and it takes you a lot of health.

Srsly, kill yourself
Yea, I know its a bit exagerated the translation, though it was funny.

Javivi 12-07-2009 06:20

Re: [ZP] Extra Item : Force Field Grenade
 
Quote:

Originally Posted by 01101101 (Post 1009207)
I translate what he said since he doesn't know english:
Yea, I know its a bit exagerated the translation, though it was funny.

LOL, only a bit ? :mrgreen::mrgreen:

Good Job lucas ;).

Speed, tu modeleador hizo una pokeball en lugar de una granada xDDDD...



@ lucas
PHP Code:

public event_round_start()
{
    
#if defined CAMPO_ROUND
    
remove_entity_name(entclas)
    
#endif


--->

PHP Code:

#if defined CAMPO_ROUND
public event_round_start()
{
    
remove_entity_name(entclas)
}
#endif 


Y, porque pones replace_models tantas veces seguidas? xDDD

lucas_7_94 12-07-2009 08:01

Re: [ZP] Extra Item : Force Field Grenade
 
Quote:

Originally Posted by Raddish (Post 1009087)
Nice!!
pd: es el q postie y lo modificaste noxD?

[ES] No , Vos usabas user_slap y ademas tenia masss bugs que el zp mutilation de speed , ademas , este plugin ya lo tenia desde hace rato.


Kiske:

Yes, I think it hize something wrong, now I'm going to try to solve, thanks beaten.

Javivi:

Thank you very much, I needed something like that xD.

The problem was that the model is not replaced. now I see I can do.

deadlyclaws 12-07-2009 13:13

Re: [ZP] Extra Item : Force Field Grenade
 
define campo task doesn't work

lucas_7_94 12-07-2009 14:28

Re: [ZP] Extra Item : Force Field Grenade
 
Quote:

Originally Posted by deadlyclaws (Post 1009483)
define campo task doesn't work

Test the version new. Look the first post.

xPaw 12-07-2009 14:31

Re: [ZP] Extra Item : Force Field Grenade
 
- You don't need to strip grenade when giving new 1.
Code:
            if(user_has_weapon(player, CSW_SMOKEGRENADE))             {                 fm_strip_user_gun(player, 9)             }             fm_give_item(player,"weapon_smokegrenade")
->
Code:
give_item( player, "weapon_smokegrenade" );

Code:
    for (new id1; id1 <= maxplayers; id1++)         g_bomb[id1] = false
->
Code:
arrayset( g_bomb, false, 33 );

- get_user_msgid("SayText") - Store as global variable.
- You dont need to check if is_user_connected in Color( ), get_players( ) does that for you already.
- fm_give_item -> give_item

- Better way to change weapon model, your current sucks.

Code:
const m_pPlayer = 41; RegisterHam( Ham_Item_Deploy, "weapon_smokegrenade", "FwdHamSmokeDeploy", 1 ); public FwdHamSmokeDeploy( const iEntity ) {     if( pev_valid( iEntity ) != 2 )         return HAM_IGNORED;         new id = get_pdata_cbase( iEntity, m_pPlayer, 4 );         if( g_bomb[ id ] && !zp_get_user_zombie( id ) )         set_pev( id, pev_viewmodel2, model_grenade );         return HAM_IGNORED; }


All times are GMT -4. The time now is 19:52.

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