Search results

  1. Sgqvur

    Closing Program by ESC in C++

    Hey, you =) Note: After reading my post you won't find an answer to your question but hopefully it teaches you somethin' else. Whether you can detect keys (arrow keys, escape, etc.) in C++ doesn't mean anything, this is what the OS and some library will give you when you actually need...
  2. Sgqvur

    c++ simple program giving strange errors...

    >I have no clue why... Well, you could try to use those programs called you know... debuggers. I've personally never had the need to use one (not because I am a guru at programming, no... because I've never written anything "usefull/substantial", I've only been writting little scripts from...
  3. Sgqvur

    Snippet Angles: Cone

    >Want the simplest way to explain what 'cone' means here? Breath of Fire (base skill of Warcraft), you're done. Wait... isn't Breath of Fire an isosceles trapezoid? =)
  4. Sgqvur

    Snippet Angles: Cone

    >Are you asking because you don't know or because you want me to make it more clear? Both =), but I think I get it now even the example (picture), it demonstraites what you've written "Cone(45,0,70)" but I think it would be better if it was even more "obvious": And I think what NoobImbaPro...
  5. Sgqvur

    Mass root, Damage over time trigger

    >The beauty of vJass. Beauty is in the eye of the beholder =) module MassRootDamageOverTime enum mass-root-damage-over-time { int id = 'MRDO' real delay = 0.5 int repeatbase = 4 real rangebase...
  6. Sgqvur

    Snippet Angles: Cone

    NoobImbaPro: The formula checks if A angle is inside B angle +-O degrees. Well, that I can understand unlike '//Determines if the angle "a" is inside a cone of facing "b" with aperture "o"' PS: the trig natives work with radians, GetUnitFacing works with degrees.
  7. Sgqvur

    Snippet Angles: Cone

    Dirac, please use a "common" terminology and/or provide definitions for the terms you use. I mean: Isn't a cone a 3d geometric shape? Perhaps a circular sector might be better? What's an aperture? '//Determines if the angle "a" is inside a cone of facing "b" with aperture "o"' 'a cone of...
  8. Sgqvur

    Sci/Tech New missile capable of destroying enemy weapons at THREE times the speed of sound.

    There's no security. If someone makes something then another one will find a way around it. If scientists were real scientists they would ask themselves "Why do people kill each other?", "What makes war?", etc. They would not be building weapons nor terraforming other planets nor smashing...
  9. Sgqvur

    ExecuteFunc'ing static methods

    This is peculiar. And well in that case call ExecuteFunc("s__<struct_name>_<static_method_name>") and call ExecuteFunc("s__<library>___<struct_name>_<static_method_name>") suddenly seam "reasonable".
  10. Sgqvur

    ExecuteFunc'ing static methods

    tnx! =)
  11. Sgqvur

    ExecuteFunc'ing static methods

    Hm... Maybe I've asked this one before but anyway: How to use the ExecuteFunc native which takes a string, i.e function/static method's name to "execute" a static method? struct STRUCT static method FUNCY takes nothing returns nothing call BJDebugMsg("If instead of ")...
  12. Sgqvur

    Snippet tilems

    >Does this use a timer that expires 32x a second? What else?... nah just 1(TILE_TRANSITION_DELAY) second
  13. Sgqvur

    Snippet tilems

    Requires: Unit Indexer by Nestharus * WorldBounds * Event SpeedMod by Dirac * LinkedListModule GrimexManual (file:///somewhere_on_you_hd/newgen/jassnewgenpack5d/grimext/GrimexManual.html) by PitzerMike A spreadsheet program like OpenOffice.org Calc After clearing the requirements I will try to...
  14. Sgqvur

    Snippet GetNearestUnit

    >Dear mate, your coding is too ugly.....keep variable names more human. You mean more human-readable? The point of the script was: "Well, actually the fastest way to do it, that I know of would be this:" For whatever/uknown reason Jass2/bytecode or something executes slower with longer variable...
  15. Sgqvur

    System Advanced Unit Transfer System

    Or... just use jasshelper.exe or clijasshelper.exe from the command line, examples: jasshelper --scriponly commonj.j Blizzard.j in.j out.j; // asuming that the command is run from the jasshelper directory and all the files (common.j Blizzard.j in.j and out.j) exist there. wine...
  16. Sgqvur

    Snippet GetNearestUnit

    >An instant casted Chain Lightning which jumps thorugh each unit, from the closest to the farthest. Well, the way I see it a chain lightning works basiclly in the following way: 1. a lightning effect is created ruffly(maybe it has some z for example) from the origin of the caster to the spell...
  17. Sgqvur

    Snippet GetNearestUnit

    >I'm sticking with mergesort because I really would like to be able to know the 2nd, 3rd or any unit in the list. If you don't mind can you give me an example where based on the distance the 2nd, 3rd, etc. unit is actually needed? >The speed difference is so minimal it's not even worth the...
  18. Sgqvur

    Snippet GetNearestUnit

    @muzk Yeah, you are actually right.
  19. Sgqvur

    Snippet GetNearestUnit

    @muzik Yes this is basically the fastest way to do it (That I know of), although you are forgetting to null the e variable so it actually leaks [not a big deal though =)] Well, actually the fastest way to do it, that I know of would be this: globals group G0 = CreateGroup() unit U0...
  20. Sgqvur

    Items and Inventories.

    Hm... A thread about items and inventories and not a signle mention about: Tc's BX-TRS II In my opinion it's the system which almost all other full screen inventories have tried to fork/emulate, although I think the idea behind it was actually from another system called fsgui. It really...
Top