| 1533 | } |
| 1534 | |
| 1535 | void sniperrifle::setscope(bool enable) |
| 1536 | { |
| 1537 | if(this == owner->weaponsel && !reloading && owner->state == CS_ALIVE) |
| 1538 | { |
| 1539 | if(scoped == false && enable == true) scoped_since = lastmillis; |
| 1540 | if(enable != scoped) owner->scoping = enable; |
| 1541 | scoped = enable; |
| 1542 | } |
| 1543 | } |
| 1544 | |
| 1545 | // carbine |
| 1546 |
no outgoing calls
no test coverage detected