Thread: [Subplugin Submission] [ZP43|ZP50] New Tripmine
View Single Post
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 - 1210 views - 19.1 KB)

Last edited by yokomo; 10-25-2015 at 05:42. Reason: Update to version 0.0.7
yokomo is offline