Actually, I was wrong (ish). I did add a hacky way for you to add hitmarkers but I didn't enable it in the release version. Here's a test build with it enabled; rename it to hac.dll and drop it into your Halo folder. To use it, have your Lua script register for the 'HIT_DETECT' event.
If you want your hitmarkers to be animated, you'll have to use a spritesheet. Since I haven't documented that function anywhere, here's the signature:
There's an example of using them in the Halo 4 medal script.Code:const std::string& name, bool loop, int rows, int columns, int fps, // framerate for playback int blanks, // number of blank frames at the end of the spritesheet int loopBegin // frame # to begin loop playback from
Code:create_animation("blue_flash") add_keyframe("blue_flash", 0, 0.85, 4) add_keyframe("blue_flash", 0, 1.3, 0) add_keyframe("blue_flash", 150, 1.0, 0) create_sprite("blue_flash", "images/h4glowsprite.png", "blue_flash") sprite_properties("blue_flash", false, 1, 4, 30, 0, 0)
Silly me, I seem to have forgotten how to load packs. Seems the blog has been down for a while.
E:
Found a decent resource.
http://halosources.blogspot.com/2015...ate-guide.html
Last edited by t3h m00kz; August 4th, 2015 at 03:11 PM.
Here's a list that I have compiled over the years.
I have no idea why the horizontal scrolling isn't showing up in the post, but in post preview it does. Sorry about that.Code:Key shortcuts (will be configurable in the near future): Bookmark controls: F4 – Add current server to bookmarks. F5 – View bookmarks. Alt + bookmark number - Join bookmarked server. Delete + bookmark number – Delete a bookmark. Ctrl + Alt/Delete + bookmark number – Selects bookmarks in the range 11-20 (example, ctrl + alt + 4 will join bookmark 14). Field of view controls: F6 – Change field of view. Move the mouse up/down to control it. Press F6 again when you’re done. Left shift + F6 – Reset field of view to the default (70). HUD colour controls: F9 – Set the HUD colour. Shift + F9 – Reset the HUD colour Sightjacker controls: F7 – Enable/disable the sightjacker. Console Commands: hac_widescreen 0/1 Turn HAC 2’s HUD scaling fix on/off. The default is on. scope_blur 0/1 Toggle between the blur effect when using scopes in scoped weapons. play_during_queue 0/1 Allows you to remain in the current game until a free slot is available in the bookmarked server you attempted to join. draw distance Distance is the number of world units to draw. The default is 1024 and HAC uses 4096 for maps that benefit from increased draw distances. recalculate “map name” Recalculates the checksum for the given map. This is aimed at map makers that don’t want to use the cached checksum during development, given that the checksum will change with each compile. Use quotation marks for map names with spaces. budget_show 0/1 Displays the current number of BSP polygons being drawn and the remaining default/HAC budget. Once the limit is hit, any polygons that’d push the budger over the limit will appear has gaps in the geometry. fov value in degrees Can be used as an alternative to F6 for setting your field of view. hac_flush_cache Clear the entire checksum cache. There’s no real reason to use this but it’s there anyway. copy Copies the information for the current server to clipboard. This is useful for pasting the connect ip:port password information over Xfire/Steam etc. copy bookmark number Same as above except it copies the information for a bookmarked server instead of the current server. devmode 0/1 Toggles devmode on Halo CE. custom_chat 0/1 Toggles custom chat. font_size Changes font size for custom chat. optic Display all available medal packs. optic load <pack name> Load a medal pack. For example, optic load halo4. optic unload Stop the medal system. You do not need to use unload to simply load visible_objects <number> Control the number of objects drawn. Most users will have no need for this command.
Last edited by supersniper; August 9th, 2015 at 09:47 PM.
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks