Several Easy Hl Coding Questions
Hello everyone. I am new to the HL1 coding and I just want to ask you guys some easy (for you I guess) stuff that I want to achieve.
1. How to create a timer that is visible on screen that counts from 00:00:00 till the end of the level, and how to write that time out in log000001.txt for example. The next player that plays the level will have log000002.txt and so long. 2. How to disable mouse from the game, I just want the arrow keys and space key. 3. Before every level I want to have a black screen that tells you to press space to begin level 1, and a black screen after you finished the level that tells you to press space to go to level 2. 4. I want to have a time stamp when a weapon is picked up in the log000001.txt. Thank you all that can help me in advance. I will really appreciate the help! |
i'm new to,but i think for (1) you need a get_timeleft and create a place with hudgenerator i think???
|
I tried something,got 6 warnings,so if anyone could help me a little bit.
Code:
|
Hello, thank you verry much. But I think that u've missunderstood me. I want to create not a time left, but a simple timer display starting from 00:00:00 and when you finish one level at the end of the level you will get on a black screen for example or in a logfile (the better) like Map1 finished in 00:02:34
Map2 finished in 00:14:22 total time 16 min and 56 sec. |
Quote:
Code:
Compiles ok, but not tested :wink: |
Code:
|
No... it won't...
Thats a really 'hard to see' identing style :? I think my style is much better :) --- Look at these two examples Code:
Code:
You can immidiatly see what piece of code is in what loop with the first style. You can't really see with the seconds style :D |
Hi, thanks! But I have some problems with the mod. I compiled MaximusBrood's code and put it in to the plugins.ini . My liblist gam is
game "Maze rat" startmap "maze1" trainmap "t0a0" mpentity "info_player_deathmatch" cldll "cl_dlls\client.dll" gamedll "addons\metamod\dlls\metamod.dll" gamedll_linux "addons/metamod/dlls/metamod_i386.so" The game crashesh every time I start new game (or load a map.) I thought that it was from the compiled plugin but when i removed it , it is the same - crash. May be something is wrong with amx ? |
|
lol i meant the
Code:
i would have done it like so: Code:
|
| All times are GMT -4. The time now is 20:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.