AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP43|ZP50] New Tripmine (https://forums.alliedmods.net/showthread.php?t=229001)

yokomo 10-30-2013 16:27

[ZP43|ZP50] New Tripmine
 
1 Attachment(s)
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:
http://cloud-2.steampowered.com/ugc/...BFF72DC113FDA/

You need beams stock to compile this plugin.

TheDS1337 10-30-2013 17:21

Re: [ZP43] New Tripmine: Beta
 
nice job yokomo!

hosimosi 10-30-2013 17:50

Re: [ZP43] New Tripmine: Beta
 
Gj Man
i Test it and perfectly worked on zp5.0.8

yokomo 10-30-2013 21:00

Re: [ZP43] New Tripmine: Beta
 
Quote:

Originally Posted by DeagLe.Studio (Post 2054847)
nice job yokomo!

Please try it.

Quote:

Originally Posted by hosimosi (Post 2054861)
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. :up:

Catastrophe 10-31-2013 02:04

Re: [ZP43] New Tripmine: Beta
 
1 Attachment(s)
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.

yokomo 10-31-2013 05:19

Re: [ZP43] New Tripmine: Beta
 
Quote:

Originally Posted by Catastrophe (Post 2054981)
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)


Catastrophe 10-31-2013 06:39

Re: [ZP43] New Tripmine: Beta
 
Quote:

Originally Posted by yokomo (Post 2055021)
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..

bat 10-31-2013 11:52

Re: [ZP43] New Tripmine: Beta
 
GJ :up:

plazma 10-31-2013 12:19

Re: [ZP43] New Tripmine: Beta
 
GJ, but the church created and health tripmines on hudmsg had been amazing... :P

DonKisgot 10-31-2013 18:52

Re: [ZP43] New Tripmine: Beta
 
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.


All times are GMT -4. The time now is 18:26.

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