Recent content by Magthridon96

  1. M

    Whats your Speedtest connection?

    LB is Lebanon.
  2. 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...
  3. M

    System Damage Struct

    edit Nevermind.
  4. 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
  5. M

    System Timer Utils

    .
  6. 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
  7. 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? :(
  8. 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...
  9. 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.
  10. 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
  11. M

    Snippet Armor

    Newsflash: The whole 0 == x is faster than x == 0 is total baloney. (According to recent benchmarks by Anitarf)
  12. 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.
  13. 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...
  14. 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.
  15. 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