Raised This Month: $ Target: $400
 0% 

Setting health message = 0


Post New Thread Reply   
 
Thread Tools Display Modes
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
VEN
Veteran Member
Join Date: Jan 2005
Old 07-25-2007 , 13:16   Re: Setting health message = 0
Reply With Quote #2

Quote:
just something cooky with Half-life
Yes.
VEN is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 07-26-2007 , 08:25   Re: Setting health message = 0
Reply With Quote #3

Aha - my spawn script ends up doing this (I didn't quite work out that your "move direction" doesn't rotate till I tried it in 3rd person view, I only knew it screws up moving.) ... I'll check if I'm accidentally setting health to 0.

It's somewhere to look at least - are there any other known causes of this effect?
purple_pixie is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 07-26-2007 , 12:06   Re: Setting health message = 0
Reply With Quote #4

PHP Code:
new byte:checkpoints byte:gChecks[id
Why?
X-Script is offline
gallucci
Junior Member
Join Date: Nov 2006
Old 07-28-2007 , 20:21   Re: Setting health message = 0
Reply With Quote #5

I was doing something wrong with the message and every time it screwed up it crashed counter-strike. it was just to make sure while i was testing it. its gone now.
gallucci is offline
Reply



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