Raised This Month: $ Target: $400
 0% 

Setting health message = 0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gallucci
Junior Member
Join Date: Nov 2006
Old 07-24-2007 , 04:30   Setting health message = 0
Reply With Quote #1

Hey, wondering if its just something cooky with Half-life in that whenever the health message is set so that it is displaying zero it seems to lock the directional plane. This is similar to in a KZ map when you checkpoint on a ladder.

+forward always goes in one direction, not the one in which you are looking. same goes with strafeleft/right and backwards. It happens when i set the person's health to 256 also, and not just when i display a zero.

This is the message function:
Code:
public hudtime_msg(id,cltime)
{
    message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("RoundTime"),{0,0,0},id)
    write_short(cltime)
    message_end()
    
    message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("Health"), {0,0,0}, id);
    new byte:checkpoints = byte:gChecks[id] // Realize this isn't probably needed
    write_byte(checkpoints)
    message_end()
    
    message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("Battery"), {0,0,0}, id);
    write_short(gTeles[id])
    message_end()
    
    return PLUGIN_HANDLED
}
What im really looking to find out is if this is something that i have done, a bug, or just something about HL

edit: Also like to note that this effect goes away after the player uses a checkpoint, and zero is no longer displayed
gallucci is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode