Search found 7 matches

by Hymns For Disco
Thu Jan 18, 2018 12:43 am
Forum: Plugin Development Support
Topic: Supported/Recommended way to set client convars?
Replies: 1
Views: 62

Supported/Recommended way to set client convars?

Is there a supported or recommended way of setting client convars? In Sourcemod there is a function SendConVarValue which will allow you to set the value of a cvar for a specific client, for example sv_airaccelerate or sv_autobunnyhopping. What is the best equivalent solution in source-python? I sea...
by Hymns For Disco
Thu Jan 18, 2018 12:33 am
Forum: Plugin Development Support
Topic: Players movementspeed
Replies: 7
Views: 204

Re: Players movementspeed

Would like to add some info. First of all: I talk about CS:GO. There are 2 variables that control speed. If I am correct, the way offered above works with 'sv_accelerate', which is multiplier to your base speed Console variable 'sv_maxspeed' - base speed, which is determined, for example, by weapon...
by Hymns For Disco
Thu Dec 28, 2017 8:55 pm
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 16
Views: 2127

Re: Threaded MySQL

Your TSQL class is quite a bit overcomplicated if you simply want to execute queries on a different thread with callbacks. This short code snip will let you execute queries on a gamethread without lagging the server. import pymysql as MySQL from listeners.tick import GameThread connection = MySQL.co...
by Hymns For Disco
Sun Dec 17, 2017 12:34 am
Forum: Plugin Development Support
Topic: Crash when spawning entities from OnLevelInit
Replies: 2
Views: 125

Crash when spawning entities from OnLevelInit

It seems that trying to spawn entities from the OnLevelInit listener will crash the server. from commands.typed import TypedSayCommand from entities._base import Entity from players._base import Player from listeners import OnLevelInit from mathlib import Vector @TypedSayCommand('add'...
by Hymns For Disco
Thu Nov 23, 2017 3:05 am
Forum: Plugin Development Support
Topic: Looping a Timed Task in Many Objects
Replies: 8
Views: 337

Re: Looping a Timed Task in Many Objects

[...] Thanks for your reply. First, yes I am creating multiple instances of the TimerZone class, and also creating child classes of TimerZone to override functions for events such as touch, start_touch, end_touch etc. As well as change beam color per zone class. I am making an invisible zone to ess...
by Hymns For Disco
Wed Nov 22, 2017 8:05 pm
Forum: Plugin Development Support
Topic: Looping a Timed Task in Many Objects
Replies: 8
Views: 337

Re: Looping a Timed Task in Many Objects

One option would be Repeat which uses Delay internally, which in turn uses a tick listener. That would be my preferred option in this instance. Thank you for your response. I have tried using both Repeat() and Delay() in my Zone class, but both of these functions cause the server to immediately fre...
by Hymns For Disco
Wed Nov 22, 2017 7:30 am
Forum: Plugin Development Support
Topic: Looping a Timed Task in Many Objects
Replies: 8
Views: 337

Looping a Timed Task in Many Objects

I am trying to create a plugin where I have several entities in my map, (Instantiated through my Zone class), and I want these Zones to draw and redraw their outline beams periodically. I don't need the timing to be super precise, I just need it to be reliably recalled repeatedly throughout the life...

Go to advanced search