Results 1 to 10 of 321

Thread: HAC 2 Release

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11

    Re: HAC 2 Release

    Updated Hitmarkers. Got Kill Markers working!!! Cleaned up the code a ton

    I'm still running into occasional exceptions. Like one every two to four games. I wouldn't really feel safe releasing this to too many people in this state.. Uncertain if it's Optic or my script




    https://dl.dropboxusercontent.com/u/...markers1.1.zip

    NEED A DISPENSER HERE

    Code:
    api_version = "1.0.0"
    
    
    kills = 0;
    
    
    function register_callbacks()
        create_animations()
        register_callback(cb['HIT_DETECT'], "hit_detect")
        register_callback(cb['PLAYER_KILLS'], "player_kills")
     end  
     
     function display(message, name, sound, low_priority)
        low_priority = low_priority or false 
        hud_message(message)
        queue_audio(sound, low_priority)
        display_medal(name)
    end
     
     function hit_detect(event, killer, victim, player, timestamp)
         if(killer == player) then
            if(kills == 1) then
                display("Kill!", "killmarker_medal", "audio/hm_kill.wav")
                kills = 0;
            else
                display("Hit!", "hitmarker_medal", "audio/hm_hit.wav")
            end
        end
     end
     
     function player_kills(event, killer, victim, player, timestamp)
        if(killer == player) then
            kills = 1;
        end
     end
     
    function create_animations ()
    
    
        --Hitmarker Ani
        
        create_animation("hitmarker_ani")
        
        add_keyframe("hitmarker_ani", 0, 0.49, 8) -- x pos
        add_keyframe("hitmarker_ani", 0, 0.52, 9) -- y pos
        
        add_keyframe("hitmarker_ani", 0, 1.5, 0) -- scale
        add_keyframe("hitmarker_ani", 100, 2, 0) -- scale
        
        add_keyframe("hitmarker_ani", 0, 1, 4) -- opacity
    
    
        --Main Hitmarker
        
        create_animation("main_hitmarker")
    
    
        add_keyframe("main_hitmarker", 0, 1.0, 0) -- scale
        add_keyframe("main_hitmarker", 1710, 1.0, 0) -- scale
    
    
        add_keyframe("main_hitmarker", 100, 1, 4) -- opacity
        
        --HitMarker
        
        create_sprite("hitmarker", "images/hm_hit.png", "hitmarker_ani")
        create_medal("hitmarker_medal", "main_hitmarker")
        attach_sprite("hitmarker_medal", "hitmarker")
    
    
        --killmarker Ani
        
        create_animation("killmarker_ani")
        
        add_keyframe("killmarker_ani", 0, 0.49, 8) -- x pos
        add_keyframe("killmarker_ani", 0, 0.52, 9) -- y pos
        
        add_keyframe("killmarker_ani", 0, 1.5, 0) -- scale
        add_keyframe("killmarker_ani", 100, 2, 0) -- scale
        
        add_keyframe("killmarker_ani", 0, 1, 4) -- opacity
    
    
        --Main killmarker
        
        create_animation("main_killmarker")
    
    
        add_keyframe("main_killmarker", 0, 1.0, 0) -- scale
        add_keyframe("main_killmarker", 1710, 1.0, 0) -- scale
    
    
        add_keyframe("main_killmarker", 100, 1, 4) -- opacity
        
        --killMarker
        
        create_sprite("killmarker", "images/hm_kill.png", "killmarker_ani")
        create_medal("killmarker_medal", "main_killmarker")
        attach_sprite("killmarker_medal", "killmarker")
    end
    You like that shit Rent?

    E: Fixed video..

    E2: Pix
    Last edited by t3h m00kz; October 6th, 2015 at 11:26 AM.
    Reply With Quote

Thread Information

Users Browsing this Thread

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

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
  •