Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Tau Cannon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-10-2010 , 10:47   [ZP] Extra Item: Tau Cannon
Reply With Quote #1

---Intro---
This plugin adds new weapon - Tau Cannon.Basically, this is almost
the same weapon as in Half-Life.
Quote:
Originally Posted by planethalflife.com
An experimental, highly unstable weapon. One of the most important abilities is that it can shoot through walls, making it so that you can't take cover against it. The gauss's primary fire shoots out tiny spurts that are only effective in close to medium range due to its erratic spread. You can charge up the gauss by holding down alternate fire; the longer you charge it up, the stronger it gets. The longer you charge it up is directly proportional to the thickness of the wall you can shoot through. Lookout campers, retribution has come.


---CVARs---

Quote:
zp_tcannon_oneround - Should Tau Cannon be in players inventory only for 1 round?
zp_tcannon_dmgprim - Primary attack damage
zp_tcannon_dmgsec - Maximal secondary attack damage
zp_tcannon_clip - Clip amount
---Credits---
Arkshine, HL SDK, meTaLiCroSS and more...

---Changelog---
Quote:
1.0 - Initial release.
1.1 - Added some statics
1.2 - Fixed server crash
- Fixed bug with ammo buying
---Screenshots---


---Final notes---
1.Put this plugin name in plugins-zplague.ini before main plugin.
2.Misc. things that you can edit in plugin
Code:
// Some gauss/beam stuff
#define GAUSS_REFIRERATE    0.2 // Primary attack
#define GAUSS_REFIRERATE2    0.1 // Secondary attack(you shouldnt change this!)
#define GAUSS_RECOIL        -2.0 // Only X axis!
#define GAUSS_CHARGETIME    4.0 // From HLSDK
#define GAUSS_RELOADTIME    2.0 // Reload time
#define BEAM_RED        255 // Red amount
#define BEAM_GREEN        128 // Green amount
#define BEAM_BLUE        0 // Blue amount
#define BEAM_ALPHA        255 // Brightness(Alpha)
#define BALL_AMOUNT        8 // How many balls should appear :p
3.I recommend you to use model provided in archive, because original model look ugly and its left-handed.
Attached Files
File Type: zip tau_cannon.zip (77.0 KB, 7781 views)
File Type: sma Get Plugin or Get Source (zp_extra_tcannon.sma - 8717 views - 44.5 KB)
__________________


Last edited by NiHiLaNTh; 08-26-2010 at 04:58. Reason: v1.1
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Vechta
Veteran Member
Join Date: Jun 2010
Old 07-10-2010 , 10:52   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #2

Wow awesome !! putting now on my server
Vechta is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-10-2010 , 12:30   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #3

PHP Code:
// Die
g_bKilledByLaserpEntity ] = true
ExecuteHamB
Ham_KilledpEntityPlayer)
g_bKilledByLaserpEntity ] = false 
I hate when people don't tell some credits (and the method to catch the dropped weapon), although is a little shit of code.

PHP Code:
        // Reload offset
        
new fInReload get_pdata_int iEntm_fInReload,)
        
        
// Next attack time
        
new Float:flNextAttack get_pdata_float (iOwnerm_flNextAttack)
        
        
// Clip
        
new iClip iClip get_pdata_int iEntm_iClip)
        
        
// Ammo type
        
new iAmmoType m_rgAmmo_player_Slot0 get_pdata_int iEntm_iPrimaryAmmoType)
        
        
// BP ammo
        
new iBpAmmo iBpAmmo get_pdata_int iOwneriAmmoType
Use statics variables on forwards like these (called every frame)

Btw seems to be a good convertion from the original gauss
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-10-2010 , 12:10   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #4

Another awesome plugin by NiHiLaNth

Good Job
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Vechta
Veteran Member
Join Date: Jun 2010
Old 07-10-2010 , 12:13   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #5

The picture is little bit dark maybe you can make later new one?
Vechta is offline
Hezerf
BANNED
Join Date: Mar 2010
Old 07-10-2010 , 14:18   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #6

Ham_Killed is auto-called by Ham_TakeDamage if life is smaller that damage.You can hook Ham_Killed and set that 2 vars.
Hezerf is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-11-2010 , 07:49   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #7

Quote:
Originally Posted by Vechta
Wow awesome !! putting now on my server
Quote:
Originally Posted by abdul-rehman
Another awesome plugin by NiHiLaNth

Good Job
Thank you!

And meTaLiCroSS, OK I'll give you a credit.

P.S. Updated to 1.1
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
manafi
Senior Member
Join Date: Jun 2009
Old 08-26-2010 , 04:05   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #8

1 Bag detected.

If i buy this weapon,hold right mouse bottom,wait some time = server crash and show this error.

SV_startsound volume "number"
manafi is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-26-2010 , 04:58   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #9

My bad....Fixed.Redownload sma file
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
manafi
Senior Member
Join Date: Jun 2009
Old 08-26-2010 , 05:36   Re: [ZP] Extra Item: Tau Cannon
Reply With Quote #10

ty
manafi 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 15:44.


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