Talk:Adding a Dynamic Scope: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
  scopeView.fov = localPlayer->GetActiveWeapon()->GetZoomFOV();  
  scopeView.fov = localPlayer->GetActiveWeapon()->GetZoomFOV();  
This line controls FOV level
This line controls FOV level
i get two errors while compiling
1>.\view.cpp(1146) : error C2039: 'scopeView' : is not a member of 'C_BaseCombatWeapon'
1>        d:\Steam\steamapps\SourceMods\src\game_shared\basecombatweapon_shared.h(115) : see declaration of 'C_BaseCombatWeapon'
1>.\view.cpp(1146) : error C2228: left of '.fov' must have class/struct/union
im using ep1 engine

Revision as of 22:34, 25 July 2008

Oh you're a fucking god whoever added this.

Seriously.--Gear 06:00, 25 May 2008 (PDT)

This doesn't work. I get a black texture. I'm using EP2.--User:JLea 20:29, 26 May 2008 (PDT)

EDITNevermind, I got it to work. It's fine now :D

How do I change the zoom level? FOV?

Millz: Glad you like it.

scopeView.fov = localPlayer->GetActiveWeapon()->GetZoomFOV(); 

This line controls FOV level

i get two errors while compiling

1>.\view.cpp(1146) : error C2039: 'scopeView' : is not a member of 'C_BaseCombatWeapon' 1> d:\Steam\steamapps\SourceMods\src\game_shared\basecombatweapon_shared.h(115) : see declaration of 'C_BaseCombatWeapon' 1>.\view.cpp(1146) : error C2228: left of '.fov' must have class/struct/union

im using ep1 engine