This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ../aux_drain/aux_drain.py | |
# Python | |
from enum import IntEnum | |
# Source.Python | |
from core import PLATFORM | |
from memory import Convention, DataType, find_binary | |
from memory.hooks import PreHook | |
from memory.manager import CustomType, TypeManager, Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ../bouncy_entity/bouncy_entity.py | |
# Python | |
import math | |
import random | |
# Source.Python | |
from entities.dictionary import EntityDictionary | |
from entities.entity import Entity | |
from mathlib import Vector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ../smooth_fov/smooth_fov.py | |
# Source.Python | |
from players.entity import Player | |
from engines.server import global_vars | |
from commands.say import SayCommand | |
def change_fov(index, target_fov, rate=0.3): | |
"""Changes a player's field of view (FOV) smoothly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#fake_crosshair_example.py | |
from events import Event | |
from colors import Color | |
from memory import make_object | |
from entities.hooks import EntityCondition, EntityPreHook | |
from players.entity import Player | |
from players.helpers import index_from_userid | |
from weapons.entity import Weapon | |
from messages import HudMsg |