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

Subplugin Submission [ZP] Extra Item : Invisible || Updated v1.4.3 [26/12/2009]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 10:35   [ZP] Extra Item : Invisible || Updated v1.4.3 [26/12/2009]
Reply With Quote #1

[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!
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.

Last edited by Fry!; 12-26-2009 at 14:36. Reason: New Update v1.4.3.
Fry! is offline
ifx
Senior Member
Join Date: Apr 2008
Old 10-19-2008 , 10:49   Re: [ZP] Extra Item : Invisible
Reply With Quote #2

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
ifx is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 10:58   Re: [ZP] Extra Item : Invisible
Reply With Quote #3

Quote:
Originally Posted by ifx View Post
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. 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.)
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
ifx
Senior Member
Join Date: Apr 2008
Old 10-19-2008 , 11:28   Re: [ZP] Extra Item : Invisible
Reply With Quote #4

thanks!
ifx is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 12:06   Re: [ZP] Extra Item : Invisible
Reply With Quote #5

Small update, until Wednesday, till then I can't do nothing because I will need to study.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 10-19-2008 , 16:08   Re: [ZP] Extra Item : Invisible
Reply With Quote #6

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
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_invisible.sma - 2447 views - 2.3 KB)
__________________

Last edited by AntiBots; 10-19-2008 at 16:28. Reason: Add fakemeta
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 16:19   Re: [ZP] Extra Item : Invisible
Reply With Quote #7

wow, thanks for helping because I created this in 5 minutes.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 16:34   Re: [ZP] Extra Item : Invisible
Reply With Quote #8

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."
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 10-19-2008 , 16:59   Re: [ZP] Extra Item : Invisible
Reply With Quote #9

why not turn this into a CVAR?
Quote:
#define INVISIBLE_COST 55

__________________
minimiller is offline
Send a message via MSN to minimiller
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 17:02   Re: [ZP] Extra Item : Invisible
Reply With Quote #10

lol good idea.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! 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 03:29.


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