AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item : Invisible || Updated v1.4.3 [26/12/2009] (https://forums.alliedmods.net/showthread.php?t=79242)

Fry! 10-19-2008 10:35

[ZP] Extra Item : Invisible || Updated v1.4.3 [26/12/2009]
 
[ZP] Extra Item : Invisible
(For Humans and Zombies)

by Fry!

Description :

Have You ever wanted if there are so many enemys around you and then you can't escape from them? Then invisible ability is for you. When invisible is bought you foot steps will be removed also. Invisible is for one round or until death.

Cvars :
Quote:

- Medium Invisible
  • zp_medium_invisible_amount "105" - Amount of invisible
  • zp_medium_invisible_cost "39" - How much it costs
  • zp_medium_invisible_long "25.0" - How long you will have invisible
- Max Invisible
  • zp_max_invisible_amount "45" - Amount of invisible
  • zp_max_invisible_cost "68" - How much it costs
  • zzp_max_invisible_long "15.0" - How long you will have invisible

Credits :
  • Antibots - For little helping
  • Dores - For correcting me ^^

Note :
  • Tested with bots : Yea
  • Tested online : No

Changelog :

Code:

19/10/2008 - v1.0 - First release
19/10/2008 - v1.1 - fixed invisibility and removed unnecessary cvar.
19/10/2008 - v1.1.1 - changed to lower render that at least someone could notice invisible person.
19/10/2008 - v1.1.2 - changed plugin name
19/10/2008 - v1.2 - removed unnecessary code and fun module, added some new one and using fakemeta instead. (Thanks to Antibots)
19/10/2008 - v1.2.1 - changed render stuff
24/10/2008 - v1.3 - rewrited plugin, added some cvars and commands.
25/10/2008 - v1.3.1 - fixed small typo. (Thanks to Mlk27)
22/11/2008 - v1.3.2 - added cvar for invisible amount
04/12/2008 - v1.3.4 - fixed invisible was working all the time, added cvar for after how long time invisibility will end.
05/12/2008 - v1.3.6 - corrected chat messages, added message when invisibility are over, changed glow shell cuz that was possibly for player glowing.
05/02/2009 - v1.4.1 - Added 1 more invisibility feature, removed chat commands, fixed round start invisible, removed toggle cvar, fixed small typo caused debug.
05/02/2009 - v1.4.2 - fixed some minor stuff.
08/09/2009 - v1.4.3 -
  • Fixed : prevented from buying invisible spending ammo packs if you already has it.

  • Changed : removed some chat messages added hud messages instead, optimized code.

  • Added : counter for invisible easier to know how long you already have it, no foot steps.


Plugin is available to download here!

ifx 10-19-2008 10:49

Re: [ZP] Extra Item : Invisible
 
invisible human or zombie till the round end - bullshit, a lot of players will quit from this server, cause it sucks..
But, if create a timed-cvar for invisibility duration (like Cloak of Shadows) and cvar for player transparency (0-255) it will be very funny!

Also you can create a small smoke strafe-line, like shadow smoke

Fry! 10-19-2008 10:58

Re: [ZP] Extra Item : Invisible
 
Quote:

Originally Posted by ifx (Post 702147)
invisible human or zombie till the round end - bullshit, a lot of players will quit from this server, cause it sucks..
But, if create a timed-cvar for invisibility duration (like Cloak of Shadows) and cvar for player transparency (0-255) it will be very funny!

Also you can create a small smoke strafe-line, like shadow smoke

yeah, maybe You are right about this. :D Well I can add that You can see him and change maximal invisibilty to lower, then he will be noticed but not that much... (I think like in Emp's pokemod when player have chosen gastly or other ghost pokemon.)

ifx 10-19-2008 11:28

Re: [ZP] Extra Item : Invisible
 
thanks!

Fry! 10-19-2008 12:06

Re: [ZP] Extra Item : Invisible
 
Small update, until Wednesday, till then I can't do nothing because I will need to study.

AntiBots 10-19-2008 16:08

Re: [ZP] Extra Item : Invisible
 
1 Attachment(s)
remove fm_set_entity_visibility you are not using fakemeta

and i think that you have to use for invis glow:
PHP Code:

fm_set_rendering(playerkRenderFxGlowShell000kRenderTransAlpha0

and for disable:

PHP Code:

fm_set_rendering(playerkRenderFxNone000kRenderNormal0


Fry! 10-19-2008 16:19

Re: [ZP] Extra Item : Invisible
 
wow, thanks for helping :D because I created this in 5 minutes. :)

Fry! 10-19-2008 16:34

Re: [ZP] Extra Item : Invisible
 
Ok thank you I've updated to 1.2.1.

so it must be like this?

PHP Code:

        g_hasInvisible[player] = true
        
        fm_set_rendering
(player,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,75)
        
client_print(playerprint_chat"[ZP] You are now invisible, have fun to hunt.")
    }
    else 
    {    
g_hasInvisible[player] = false
    
        fm_set_rendering
(player,kRenderFxNone,0,0,0,kRenderNormal,255)
        
client_print(playerprint_chat"[ZP] Watch out You're visible."


minimiller 10-19-2008 16:59

Re: [ZP] Extra Item : Invisible
 
why not turn this into a CVAR?
Quote:

#define INVISIBLE_COST 55



Fry! 10-19-2008 17:02

Re: [ZP] Extra Item : Invisible
 
lol good idea. :D


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

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