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

handle_test / handle_dummy

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CHandleTest
CBaseEntity
test_ehandle.cpp
Class hierarchy
CHandleDummy
CBaseEntity
test_ehandle.cpp
Info.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 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.