Results 1 to 10 of 599

Thread: SAPP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    suum cuique sehe's Avatar
    Join Date
    Aug 2011
    Location
    Hungary
    Posts
    217

    Re: SAPP

    I tried to add "custom variables" like two times, but including it to the event system isn't that easy as it seems for the first time, so it ended up as "commented out" code as I cba'd to mess with this, and also because I tough I (or Btcc22) will rather add Lua, but it would be again lot of work. I think I wanted it to work like for ex. you could add variables like v1, v2, ... v16, and then using them as event_die v$n<3 '...'
    Guess I can give it a try again.

  2. #2

    Re: SAPP

    Quote Originally Posted by Kornman00 View Post
    If you need float support, Halo has 7 unused "f0" to "f6" globals. However, they're literally global. Their values will persist from one game to the next. OS's runtime values are based entirely within the game state, which means they're reset on a new map (but they're also saved when the game is saved, unlike "f0" etc).

    You also use the runtime_vector stuff, which operates on floats

    i love you

    I think I tried to use vectors at one point, but I also didn't quite understand blam at the time. Maybe I can get it to work now.

    Quote Originally Posted by sehe View Post
    I tried to add "custom variables" like two times, but including it to the event system isn't that easy as it seems for the first time, so it ended up as "commented out" code as I cba'd to mess with this, and also because I tough I (or Btcc22) will rather add Lua, but it would be again lot of work. I think I wanted it to work like for ex. you could add variables like v1, v2, ... v16, and then using them as event_die v$n<3 '...'
    Guess I can give it a try again.
    even having something like $v1-16 and commands like setv1-16 would help

    edit:
    Now I remember why I didn't use f0-6, it won't set on the server console.

    edit 2:
    Is it possible to make commands like assists accept a float? Not that I want to display a decimal in the scoreboard, but if I were insane enough to try and show somebody's health * 100 and rounded for instance
    Last edited by SonicXP; May 9th, 2014 at 06:02 PM.

Thread Information

Users Browsing this Thread

There are currently 12 users browsing this thread. (0 members and 12 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •