Recent content by Wilco

  1. W

    How do I make A zero gravity entity ?

    well if you want no gravity, have a look at what sv_gravity command does (search for it in the code and follow the functions).
  2. W

    switching primary & secondary fire

    yeah just copy the code from secondaryattack into primaryattack. Should only need minor changes, if any.
  3. W

    New MOD default player health

    you can easily take out fall damage, in the const's theres a few relating to fall damage (min velocity, how much).
  4. W

    C++ Guess the number help

    when you say stuck in an infinite loop, do u mean it never gets the correct number, or it hangs at a certain point?
  5. W

    map_prop_static: CH 53 Helicopter

    I would just say you should have done the MH-53 Special Ops Variant, its cooler :) http://www.globalsecurity.org/military/systems/aircraft/mh-53j.htm
  6. W

    Add a HUD Element - Problems

    no. that is completely seperate (but where I took my idea from). That works without the tutorial and doesnt affect it at all. I've sent Majestic an update of it, but he hasn't got around to changing it.
  7. W

    Add a HUD Element - Problems

    I went back throught it myself and it worked. When you say it doesn't work what happens? Hang on, you do know you need to compile the code using VS2003. It doesnt state that, but it states you should know basic C++. Which involves compiling :)
  8. W

    Jump speed and height boosting

    I've been messing about with this adding rocketboots. I'll have a look when I get home. use DevMsg("%f",flMul); to check flMul (or other variables). Makes a very effective debugging tool (run mod using the run_mod.bat file).
  9. W

    Custom icons/ textured backgrounds.

    to draw a point make a point texture. Check your TGA is in 24bit colour (I think thats right)?
  10. W

    Modding Weapons

    Don't get ahead of yourself :). Set the Source SDK Launcher (The steam list) to your mod name then launch hammer. Make your map (a hollowed box with an info_player_start will do). Compile (called run in the file menu) it. Then launch the game using the .bat script in the game folder. type map...
  11. W

    Firing Speed on Guns

    actually I think its set in code. Search the code for references to m_flNextPrimaryAttack . (look in say hl -> HL2 DLL - > Weapon_smg1) This appears to be the delay before another attack.
  12. W

    C++ Console Challenge

    Calm down the guy is only 13 :). Its not that hard if you've done GCSE maths, and if u know what modulus is. Its more just showing ways to shortcut, and how to make the code easier to read.
  13. W

    Checking if an array is sorted?

    aren't your answers the wrong way round? Shouldn't it be: if ( i < n ) { //if having failed ascending oreder test printf("Array is not sorted\n"); // <-that } else { //else (failed descending, passed ascending) printf("Array is sorted (ascending)\n"); // <-that }...
  14. W

    C++ Console Challenge

    Well yes you can cut it down to fit it in there, Mine has quite a few comments and spaces and stuff so u can understand it :) (Dont u dare say my code is too long again! :P). Also I think theoretically mine is a lot faster, as unless its a prime number it takes a shortcut :) I would like...
Back
Top