Recent content by Magthridon96

  1. M

    Whats your Speedtest connection?

    Consider yourselves lucky. $100 a month for this, and it comes with a 5GB limit, which I have exceeded in the last 2 days by over 3GB. Still 10 times faster than it was 2 years ago at least. (I'm not even kidding. I really do mean 10 times. Most people here back in 2008 would wait several...
  2. M

    Snippet Armor

    I know you're going to think I'm crazy for this, but: return -(Ln(2-reduction)/-0.061875) -> return Ln(2-reduction)/0.061875
  3. M

    System Timer Utils

    .
  4. M

    linked lists, +rep for help

    static arrays are way better than non-static variables. I like them because they confuse people :D Well, at least Nestharus and Bribe can read them well :P
  5. M

    Upcoming Projectile System

    That would be cool :D You'd allow the user to give an initial speed and the speed would decrease over time ^_^ The zAngle would affect the speed's decrement rate. edit Ofcourse, this wouldn't apply for homing missiles ;o Speaking of homing missiles, why aren't you supporting them? :(
  6. M

    Upcoming Projectile System

    Seems great for a WiP :) But you have to make sure the API is user-friendly enough. That's the most important thing in a projectile system (Since the user is required to give a lot of data) Maybe if you: - shorten the create function by removing the target parameters - add these 2...
  7. M

    Snippet RegisterPlayerUnitEvent

    Updated. Added some really cool functions: EnablePlayerUnitEvent DisablePlayerUnitEvent These are really useful when you want to do some very 'sensitive' actions like adding items to a unit that get removed at the end of a function. edit Bad idea. Removed.
  8. M

    I love triggers too ^_^...

    I love triggers too ^_^ http://www.hiveworkshop.com/forums/spells-569/2d-projectile-system-guifriendlyv-0-5-0-0-a-205376/ This resource on the hive uses 1 trigger per projectile, yet it can support about 2x as much projectiles as any other projectile system =P
  9. M

    Snippet Armor

    Newsflash: The whole 0 == x is faster than x == 0 is total baloney. (According to recent benchmarks by Anitarf)
  10. M

    Snippet RegisterPlayerUnitEvent

    Going to fix documentation. And yeah, it is a shame that the Math BJs are in red :O I only avoid them because of the evil red color.
  11. M

    System Damage Struct

    I know, but implementing the UnitIndexStruct would make your code look shorter. Modularity is very important. By combining your GetUnitArmor function with something totally unrelated (Damage detection), you've made this resource un-modular. Who would expect to find a GetUnitArmor function in a...
  12. M

    Snippet VUnit

    Must you use function interfaces? They literally get compiled to Garbage. Also, I agree with Bribe. If I want to debug something, I'd just put debug messages within the actual code. It helps way more.
  13. M

    Snippet RegisterPlayerUnitEvent

    If you need conditions, just do this: function TriggerAction takes nothing returns nothing if Conditions() then // run endif endfunction private struct Inits extends array private static method onInit takes nothing returns nothing call...
Top