Predicted viewmodel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
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=bms12|game1=hl2dm|game2=portal2|game3=css|game4=l4ds|game5=hldms}} This entity is basically copy of {{ent|viewmodel}} entity, but has [[prediction]].  
{{this is a|point entity|name=predicted_viewmodel|game=bms12|game1=hl2dm|game2=portal2|game3=css|game4=l4ds|game5=hldms}} This entity is basically copy of {{ent|viewmodel}} entity, but has [[prediction]]. All inputs are same as [[CBaseAnimating]].
{{PreservedEnt|}}
{{PreservedEnt|}}



Revision as of 05:04, 30 December 2024

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 (mod) Black Mesa (mod), 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.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{bms12}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Black Mesa (mod).
  • The {{{game1}}} parameter is inconsistent with the name defined by the {{hl2dm}} template. This can most likely be fixed by setting the value of the {{{game1}}} parameter to Half-Life 2: Deathmatch.
  • The {{{game2}}} parameter is inconsistent with the name defined by the {{portal2}} template. This can most likely be fixed by setting the value of the {{{game2}}} parameter to Portal 2.
  • The {{{game3}}} parameter is inconsistent with the name defined by the {{css}} template. This can most likely be fixed by setting the value of the {{{game3}}} parameter to Counter-Strike: Source.
  • The {{{game4}}} parameter is inconsistent with the name defined by the {{l4ds}} template. This can most likely be fixed by setting the value of the {{{game4}}} parameter to Left 4 Dead series.
  • The {{{game5}}} parameter is inconsistent with the name defined by the {{hldms}} template. This can most likely be fixed by setting the value of the {{{game5}}} parameter to Half-Life Deathmatch: Source.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This entity is basically copy of viewmodel entity, but has prediction. All inputs are same as 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