61
Gallery / Re: workin on a new weapon pack
« on: July 15, 2017, 04:26:27 PM »
This looks amazing. Why do add-ons this cool looking never get released?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
commandToClient( %this.client, 'bottomprint', "\c6Armor\c3:" SPC MCeil( %this.armor ) @ "\c6.", 3, true );
function Player::Damage( %this, %obj, %pos, %damage, %damageType )
{
if( %this.armored )
{
%this.armor -= %damage * 0.5;
%damage = %damage * %this.armorDivider;
commandToClient( %this.client, 'bottomprint', "\c6Armor\c3:" SPC MCeil( %this.armor ) @ "\c6.", 3, true );
yeah, look at other addons with similar functionality and see how they do it
the pref for max armor defines the max amount of armor you can hold at once. so say you set the max to 400, that means you can have up to 400 armor at once.Thanks. Not gonna say I totally understand how to do that, but I'm savvy at figuring stuff out when I really want to. But about that loop...how would I do that? I know i'm asking a lot, but it would REALLY put the cherry on top of this build man.
every time you pick up a 50 armor pickup, you get 50 armor added. so it would go 50, 100, 150, 200, 250, 300, 350, 400 and it would stop there because 400 is the max armor you set.
the amount of armor a player holds can be accessed by the function Player::getArmorPickupLevel(%this)
use that as you like. if you want to display current armor, make a loop and have it print the player's armor level. i can't make one due to compatibility issues with other mods that bottom or center print, so you'll have to either make one yourself or have someone else make it for you
another limitation is 1mb, but its really easy to bypass both limitations.Yeah, like with that large_music-file add-on. I've implemented entire songs to enhance the gameplay. XD
There is a checkpoint brick that is included in the game by default. It looks like a spawn brick, but with a white triangle on the base instead of a black one.
try putting a delay
there's a moment where events won't work after a player spawns, if the minigame resets they respawn and events shouldn't do things to them for a few seconds