MCPcopy Create free account
hub / github.com/assaultcube/AC / setscope

Function setscope

source/src/weapon.cpp:1664–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1662
1663
1664void setscope(bool enable)
1665{
1666 if(player1->weaponsel->type != GUN_SNIPER) return;
1667 sniperrifle *sr = (sniperrifle *)player1->weaponsel;
1668 sr->setscope(enable);
1669}
1670
1671COMMANDF(setscope, "i", (int *on) { setscope(*on != 0); });
1672

Callers 7

parsemessagesFunction · 0.85
rendermenuFunction · 0.85
weapon.cppFile · 0.85
deathstateFunction · 0.85
spawnstateFunction · 0.85
respawnselfFunction · 0.85
saycommandFunction · 0.85

Calls 1

setscopeMethod · 0.80

Tested by

no test coverage detected