maximum user health and fantastic round ends
Hi,
what ist the maxmimum health that i can set with set_user_health() ... i set it to 1000 on some bots (players to 300) the other problem is this logfile Code:
20:57:13 og L 02/27/2007 - 20:55:52: "Massaker-Joe<5><BOT><TERRORIST>" killed "Invader Zim<7><STEAM_0:0:2912216><CT>" with "knife"hand, mogel |
Re: maximum user health and fantastic round ends
post your code here
|
Re: maximum user health and fantastic round ends
You can set it incredibly high, I don't know the exact limit. However, it will not display correctly above 255.
What is the problem with the log messages? |
Re: maximum user health and fantastic round ends
Let me correct you Avalanche.
If you set your health to 1337, it will say: Half Life, no lie. If you set your health higher than 5000 it will crash your game. |
Re: maximum user health and fantastic round ends
Quote:
|
Re: maximum user health and fantastic round ends
With the correct plugin 1337, shows half-life Drak.
|
Re: maximum user health and fantastic round ends
The client dll uses a formula to select the proper portion of the .spr file based on the number it is trying to display. Since bytes can only go up to 255, when the Health message is received and stored as a byte, if it was actually over 255, then it gets stored as some crazy number. So when you put this into the formula, it starts grabbing strange coordinates for wacky places (such as the Half-Life logo this is displayed during the tram ride).
|
Re: maximum user health and fantastic round ends
Quote:
(Also, don't call me that) |
Re: maximum user health and fantastic round ends
Moin,
Quote:
Code:
og L 02/27/2007 - 20:55:52: Team "TERRORIST" triggered "Terrorists_Win" (CT "0") (T "1")so i catch the event(s) Code:
register_event("SendAudio", "Event_TWin", "a", "2&%!MRAD_terwin")Code:
public Event_TWin() {i setted the bot-health to 250 and now works the player-level upgrade again (bevor, it jumps from 0 to 7 [maximum]) ... i do the same with the player-health and will show ... i think there is somewhere a byte-boundary (0..255) hand, mogel |
Re: maximum user health and fantastic round ends
Omg,
i found the problem for double round-ends :mrgreen: in both round-ends (ct-win and t-win) i start the function Event_RoundEnd ... in this function i kill all bot's, they are at one side (humans on the other) ... and that generates the second round-end event set_task(1.0, "Event_RoundEnd") hand, mogel |
| All times are GMT -4. The time now is 00:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.