安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题


What I do know is, in the context of addons (Scripts/Addons/*/cl_init.bs) you can make custom HUD elements with the Draw handle.
For example, this should work as an addon: (try it in the script entity too, though I'm not 100% certain whether it works)
When I ran your script I saw no text on screen so I added a line to print the width
It kept printing to the console, I then changed it to heigth and it was printing both, so I know that now there are 3 "hooks registered", 1st shows me nothing, 2nd shows me nothing and prints width and 3rd shows nothing and prints height.
What is "OnHUDDraw" and what other identificators/strings can I replace it with?
Is it possible to unregister/delete hook after it does what it does just once?
Am I able to pass the handles without calling RegisterHook() ?
Here's a list of hooks that are currently being called: (I haven't tested them myself though, also I'm pretty sure not all of these will work in Script entity, but rather in Addons)
- OnInitialize()
- OnMapStart()
- OnMapEnd()
- OnRoundStart()
- OnRoundEnd()
- OnUpdate()
- OnPlayerConnect(int client_index, string client_name, uint64 client_steamid, string client_sentpassword)
- OnPlayerDisconnect(PlayerHandle player)
- OnPlayerDeath(PlayerHandle player)
- OnPlayerSpawn(PlayerHandle player)
- OnPlayerInit(PlayerHandle player)
- OnHUDDraw(DrawHandle draw)
- OnChat(int client_index, string message)
I'll also link this thread to Bromvlieg, he'll be able to give you more info.Thank you, I will try messing around in the Addons folder now.