Predicted viewmodel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Fixed weird error displayed by "This is a" template. Side note, why is that template wanting the full damn name of the game?)
m (*A* copy of the original entity.)
Line 1: Line 1:
{{ent not in fgd|codeonly=1}}
{{ent not in fgd|codeonly=1}}
{{CD|CPredictedViewModel|file1=1}}
{{CD|CPredictedViewModel|file1=1}}
{{this is a|point entity|name=predicted_viewmodel|game=Black Mesa|game1=Half-Life 2: Deathmatch|game2=Portal 2|game3=Counter-Strike: Source|game4=Left 4 Dead series|game5=Half-Life Deathmatch: Source}} This entity is basically copy of {{ent|viewmodel}} entity, but has [[prediction]]. All inputs are shared with [[CBaseAnimating]].
{{this is a|point entity|name=predicted_viewmodel|game=Black Mesa|game1=Half-Life 2: Deathmatch|game2=Portal 2|game3=Counter-Strike: Source|game4=Left 4 Dead series|game5=Half-Life Deathmatch: Source}} This entity is basically a copy of the {{ent|viewmodel}} entity, but has [[prediction]]. All inputs are shared with [[CBaseAnimating]].
{{PreservedEnt|}}
{{PreservedEnt|}}



Revision as of 05:31, 25 April 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
C++ Class hierarchy
CPredictedViewModel
CBaseViewModel
CBaseAnimating
CBaseEntity
C++ predicted_viewmodel.cpp

predicted_viewmodel is a point entity available in Black Mesa Black Mesa, Half-Life 2: Deathmatch Half-Life 2: Deathmatch, Portal 2 Portal 2, Counter-Strike: Source Counter-Strike: Source, Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series, and Half-Life Deathmatch: Source Half-Life Deathmatch: Source. This entity is basically a copy of the viewmodel entity, but has prediction. All inputs are shared with CBaseAnimating.

Icon-Important.pngImportant:This is a preserved entity in.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

See also