AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Mario Coins (https://forums.alliedmods.net/showthread.php?t=150095)

tuty 02-14-2011 15:48

Mario Coins
 
2 Attachment(s)
Mario Coins








Description:

Collect coins from dead bodies to reach the "thing" called 1UP. If you have 1UP you will respawn after death!
Should work on CZ too.


Cvars:

- mc_bodycoin - 1 [how many coins will players pick up from a dead body]
- mc_maxcoins - 4 [how much coins you will need to collect until you will have 1UP]
- mc_respawntime - 10 [respawn time if you have 1UP]
- mc_glowcoin - 1 [enable or disable coin glowing]
- mc_enabled - 1 [enable or disable the plugin]


Modules:

- fakemeta
- engine
- hamsandwich
- cstrike


Credits:

- apocalips for the coin model[no more used]
- HunterDigital for the new coin model, from now the coin will spin+float xD
- HamletEagle for some code tweaking and optimisations


Image:
http://i65.tinypic.com/22khw.jpg
.

Xalus 02-14-2011 16:04

Re: Mario Coins
 
Nice idea, I like it!

Arkshine 02-14-2011 16:27

Re: Mario Coins
 
Hook_DeathMessage()

- szWeapon is not used.
- bCountTokenCoins[ iVictim ] >= get_pcvar_num( gCvarPluginMaxCoinsForLife ) ; please test your plugin before releasing. The test is wrong and you won't respawn like this.
- You could use directly create_entity()
- Check if entity is valid before setting origin
- Why PLUGIN_HANDLED ? There is no point to return that.
- AFAIK, info_target is a dummy entity, using DLLFunc_Spawn won't do nothing.

tuty 02-14-2011 16:33

Re: Mario Coins
 
ups the code was done one year ago. =] thanks arkshine, idk why i used weapon, i will recheck that, please understand me i made this code one year ago xD

Arkshine 02-14-2011 16:35

Re: Mario Coins
 
I understand, but don't release because it's cool. Please test your plugins before.

tuty 02-14-2011 16:39

Re: Mario Coins
 
i tested this before and that check works fine :) i got some screenshots and everything seems okay..

Arkshine 02-14-2011 16:57

Re: Mario Coins
 
Ok, I think I've understood wrongly the purpose of the cvar. I thought you could respawn # times (max being MaxCoinsForLife)

Erdener 02-14-2011 18:51

Re: Mario Coins
 
Cool , Fantastic a plugin GJ :)

One 02-18-2011 09:44

Re: Mario Coins
 
WB Tuty

Kidev 02-18-2011 12:41

Re: Mario Coins
 
Nice! Screenshots?

But doesn't work... When I kill someone, there is no coins... Aswell the plugin is loaded...


All times are GMT -4. The time now is 08:14.

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