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

Subplugin Submission [ZP43|ZP50] New Tripmine


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-30-2013 , 16:27   [ZP43|ZP50] New Tripmine
Reply With Quote #1

Discriptions:
Code:
A plugin that add new weapon in Zombie Plague. Only humans can use this weapon.
Different from original plugin:
Code:
- No cs team check, use zp_get_user_zombie(id).
- Different knockback code.
- Use Ham_TakeDamage to do damage on zombie.
- No laser think, it use beam entity. So no need to loop for creating beam.
- Ammo packs is automatically given on damage dealt, since it use Ham_TakeDamage.
- No self damage for tripmine owner if he is zombie.
- Delete many code, download .sma and see yourself.
Changes Log:
Code:
Version 0.0.7:
- Add some security check.
- Remove tripmine think loop, now using Ham_TakeDamage post to detect it explosion.

Version 0.0.6:
- Re-write code.
- Add support for ZP50.
- Remove render cvars.
- Add check for tripmine planting nearby door and other tripmines.
- Fix crash and error on Fakemeta function.

Version 0.0.2:
- Added cvars.
- Added block humans from destroying your tripmine. If you are zombie you still can destroy your own tripmine.
- Added tripmine rendering, 4 types of rendering.

Version 0.0.1:
- First with all hardcoded values.
Cvars:
Code:
tripmine_damage //Explosion damage.
tripmine_radius //Explosion radius.
tripmine_kb_force //Knockback force multiplier.
tripmine_health //Tripmine health.
tripmine_maxammo //Max tripmine human can carry.
tripmine_maxplant //Value > 20 is not recommended.
tripmine_radius_door //Range between tripmine and door.
Amxx Modules:
Code:
Hamsandwich
Fakemeta
Engine
Configurations:
Code:
ZP50 Support:
//Uncomment 'IM_USING_ZP50' if your server is running ZP50 and above.
#define IM_USING_ZP50

Prevent other humans from destroying your tripmine:
//Uncomment 'OnlyOwnerCanDestroy' to block humans from destroying your tripmine (only owner can destroy).
#define OnlyOwnerCanDestroy
Screenshot:


You need beams stock to compile this plugin.
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_mine.sma - 1184 views - 19.1 KB)

Last edited by yokomo; 10-25-2015 at 05:42. Reason: Update to version 0.0.7
yokomo is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 10-30-2013 , 17:21   Re: [ZP43] New Tripmine: Beta
Reply With Quote #2

nice job yokomo!
TheDS1337 is offline
hosimosi
Senior Member
Join Date: Apr 2013
Old 10-30-2013 , 17:50   Re: [ZP43] New Tripmine: Beta
Reply With Quote #3

Gj Man
i Test it and perfectly worked on zp5.0.8

Last edited by hosimosi; 10-30-2013 at 17:52.
hosimosi is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-30-2013 , 21:00   Re: [ZP43] New Tripmine: Beta
Reply With Quote #4

Quote:
Originally Posted by DeagLe.Studio View Post
nice job yokomo!
Please try it.

Quote:
Originally Posted by hosimosi View Post
Gj Man
i Test it and perfectly worked on zp5.0.8
Oh i didn't know ZP50 still support ZP43 natives, hope it wont clash with ZP50. I create this for ZP43. By the way thanks for testing.
yokomo is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 10-31-2013 , 02:04   Re: [ZP43] New Tripmine: Beta
Reply With Quote #5

Zp50 version (with zp50 natives), i just changed the natives nothing else... so this should work on zp50 w/o zp43 compatibility plugin..... Still not tested.
Attached Files
File Type: sma Get Plugin or Get Source (NewTripmine50.sma - 1011 views - 16.2 KB)
__________________
You will find everything u need :-

Last edited by Catastrophe; 11-01-2013 at 10:36.
Catastrophe is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-31-2013 , 05:19   Re: [ZP43] New Tripmine: Beta
Reply With Quote #6

Quote:
Originally Posted by Catastrophe View Post
Zp50 version (with zp50 natives), i just changed the natives nothing else... so this should work on zp50 w/o zp43 compatibility plugin..... Still not tested.
Thank for converting to ZP50 natives. I nerver code with ZP50 yet, too many includes and natives make my confuse.

**Edit**
By the way these 2 natives is not use, so you can just comment on it, I forgot to delete.
ZP43:
Code:
native zp_get_user_ammopacks(id)
native zp_set_user_ammopacks(id, amount)
ZP50:
Code:
native zp_ammopacks_get(id)
native zp_ammopacks_set(id, amount)

Last edited by yokomo; 10-31-2013 at 05:26.
yokomo is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 10-31-2013 , 06:39   Re: [ZP43] New Tripmine: Beta
Reply With Quote #7

Quote:
Originally Posted by yokomo View Post
Thank for converting to ZP50 natives. I nerver code with ZP50 yet, too many includes and natives make my confuse.
No problem

and i updated my code removing unnecessary natives

BTW GJ, the code looks neat and nice..
__________________
You will find everything u need :-

Last edited by Catastrophe; 10-31-2013 at 06:40.
Catastrophe is offline
bat
Veteran Member
Join Date: Jul 2012
Old 10-31-2013 , 11:52   Re: [ZP43] New Tripmine: Beta
Reply With Quote #8

GJ
__________________
bat is offline
Send a message via Skype™ to bat
plazma
Senior Member
Join Date: Oct 2013
Old 10-31-2013 , 12:19   Re: [ZP43] New Tripmine: Beta
Reply With Quote #9

GJ, but the church created and health tripmines on hudmsg had been amazing...
plazma is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 10-31-2013 , 18:52   Re: [ZP43] New Tripmine: Beta
Reply With Quote #10

Hi , Great job!

Few suggestions (if you care about them ) ;

- Prevent damage if human attacks another humans Tripmine.
- Tripmine health cvar.

whatever still ı'm glad to see get ammopack & don't kill you your lasermine Features.
DonKisgot 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 20:31.


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