AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Extra Item : Parachute || Updated v0.3 [27/02/2009] (https://forums.alliedmods.net/showthread.php?t=80053)

Fry! 11-03-2008 15:09

[ZP] Extra Item : Parachute || Updated v0.3 [27/02/2009]
 
[ZP] Extra Item : Parachute
( For Humans )

by Fry!


Description :


Now Humans can purchase parachute to fly away from zombies if they are on high buildings. This will cost it to You some ammo packs, can change by ( cvars ) When you will use parachute your screen will be changed to 3rd view screen depends on cvar.

Cvars :
Quote:

  • zp_3rd_person_view <1|2> - set 1 to disable 3rd person view and set 2 to enable 3rd person view
  • zp_parachute_fallspeed "100" - How fast You gonna fall.
  • zp_parachute_detach <1|0> - Default is 1.
  • zp_parachute_cost "15" - How much it cost.


Credits
:
  • KRoTaL/JTP10181 - For his original parachute plugin
  • Random1 - Took some stuff from his plugin
Changelog :
Code:

02/11/2008 - v0.1 - First test
03/11/2008 - v0.2 - added some stuff
17/01/2009 - v0.2.2 - removed fun and cstrike module, removed some unnecessary code lines
15/02/2009 - v0.2.8 - fixed now you will need to buy parachute to use it, remove toggle command, removed admin give options and for admins only too, removed chat command, removed sell option, changed all to fakemeta.
27/02/2009 - v0.3.0 - removed gravity function cuz it could cause bug with Nemesis gravity, added cvar for person view.



Plugin is available to download
here!

BeAfraid 11-05-2008 07:27

Re: [ZP] Extra Item : Parachute
 
http://forums.alliedmods.net/showpos...postcount=1189

There is something like your parachute plugin... but yours better :)

Fry! 11-05-2008 07:31

Re: [ZP] Extra Item : Parachute
 
That's ok. :)

G-Dog 11-05-2008 10:21

Re: [ZP] Extra Item : Parachute
 
whats with the 3rd person view stuff? Why are you leaving the cstrike module checks in place when its for zombie plague? Whats with the format thing for the jtp10181 cvar? I understand its there to identify servers that have this plugin running by why not just have it as
Code:

register_cvar("jtp10181","chute",FCVAR_SERVER|FCVAR_SPONLY)

Fry! 11-05-2008 10:30

Re: [ZP] Extra Item : Parachute
 
Quote:

Originally Posted by G-Dog (Post 710331)
whats with the 3rd person view stuff? Why are you leaving the cstrike module checks in place when its for zombie plague? Whats with the format thing for the jtp10181 cvar? I understand its there to identify servers that have this plugin running by why not just have it as
Code:

register_cvar("jtp10181","chute",FCVAR_SERVER|FCVAR_SPONLY)


1) 3rd view already was in this plugin I just commented out.
2) Ok, I will remove it
3) That was already in that plugin.
4) Um, I don't know maybe remove it at all?

The-Disaster 11-08-2008 17:00

Re: [ZP] Extra Item : Parachute
 
could u please tell me how can i disable the 3rd person view ?

Fry! 11-08-2008 17:09

Re: [ZP] Extra Item : Parachute
 
Sure, find all places where are set_view, and disable them like this :
PHP Code:

    if (!gCStrike || access(id,PARACHUTE_LEVEL) || get_pcvar_num(g_ppurchase) <= 0
    {
        
has_parachute[id] = true
        
//set_view(id, CAMERA_3RDPERSON)
    



Fry! 01-18-2009 12:48

Re: [ZP] Extra Item : Parachute
 
Minor update, for more info check main post!

fezh 01-18-2009 17:47

Re: [ZP] Extra Item : Parachute || Updated v0.2.2 [18/01/2009]
 
Nice idea, I never thought about the parachute in the ZP :mrgreen:

lionel_lo 01-19-2009 05:50

Re: [ZP] Extra Item : Parachute || Updated v0.2.2 [18/01/2009]
 
How to change default key(+use)?


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

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