This article's documentation is for anything that uses the Source engine. Click here for more information.

Handle test: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(its position in the world irrelevant so it's logical entity)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{LanguageBar|title=handle_test / handle_dummy}}
{{CD|CHandleTest|file1=1}}
{{CD|CHandleTest|file1=1}}
{{CD|CHandleDummy|file1=1}}
{{CD|CHandleDummy|file1=1}}
{{Ent not in fgd|nolink=1|because=both are useless for level creators}}
{{Ent not in fgd|nolink=1|because=both are useless for level creators}}
{{code|handle_test}} and {{code|handle_dummy}} are [[Point entity|point entities]] available in all {{source|4}} games. Both was created to test regarding the networking of entities.
{{This is a|logical entity|name=handle_test|name1=handle_dummy|notitlechange=1}} Both was created to test regarding the networking of entities.


Developers comment in '''test_ehandle.cpp''':
Developers comment in '''test_ehandle.cpp''':
Line 10: Line 11:
'''A''' means ''handle_test'', '''B''' means ''handle_dummy''.
'''A''' means ''handle_test'', '''B''' means ''handle_dummy''.


==Dedicated Console Variables==
== Console commands ==
{{varcom|start}}
{{varcom|start}}
{{varcom|Test_EHandle| |Void|This command runs the test. Running this command again will transmit the second entity.}}
{{varcom|Test_EHandle| |void|This command runs the test. Running this command again will transmit the second entity.}}
{{varcom|end}}
{{varcom|end}}

Latest revision as of 04:42, 29 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CHandleTest
CBaseEntity
C++ test_ehandle.cpp
C++ Class hierarchy
CHandleDummy
CBaseEntity
C++ test_ehandle.cpp
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because both are useless for level creators.

handle_test and handle_dummy are logical entities available in all Source Source games. Both was created to test regarding the networking of entities.

Developers comment in test_ehandle.cpp:

In this test, the server makes an entity (call it A) that has an EHANDLE to another entity (call it B). Intitially, A is sent to the client but B is not. Later, the server decides to send B to the client too. At that point, without resending A's EHANDLE, the client's EHANDLE should access B.

A means handle_test, B means handle_dummy.

Console commands

Cvar/Command Parameters or default value Descriptor Effect
Test_EHandle void This command runs the test. Running this command again will transmit the second entity.