Search found 220 matches

by velocity
Thu Feb 16, 2017 12:48 am
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 18
Views: 95046

Re: Threaded MySQL 2.0.0 (Updated)

Hey, I decided to give youre package a try. Currently building it up right now, but Im wondering what does 'commit_before_save' on close() mean. Will it execute all "queries" in the queue before closing the connection or something else? Oh yes.. You are exactly right. What you are seeing ...
by velocity
Wed Feb 15, 2017 4:25 pm
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 18
Views: 95046

Re: Threaded MySQL 2.0.0 (Updated)

It should be better now.
by velocity
Wed Feb 15, 2017 1:54 pm
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 18
Views: 95046

Re: Threaded MySQL

Yes, sir, I am soon finished with the rework. I'm totally listening to all of you guys. I will post an update later here today, where I have implemented GameThread.
by velocity
Wed Feb 15, 2017 11:20 am
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 18
Views: 95046

Re: Threaded MySQL

Alright!!!!!!!! I will be re-coding it now, but in my defense IT REALLY doesn't lag.
by velocity
Wed Feb 08, 2017 2:21 pm
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 18
Views: 95046

Re: Threaded MySQL

Actually, this isn't really threaded as Delay and Repeat are used, which are executed in the same thread. So, this will probably just delay the lag. You need to utilize GameThread to create real threads. First of all, it will prevent lag 100%. Delaying every single query is a good solution because ...
by velocity
Wed Feb 08, 2017 12:13 am
Forum: Module/Package Submissions
Topic: Threaded MySQL
Replies: 18
Views: 95046

Threaded MySQL

Threaded MySQL Latest version: 2.0.4 (from 04-10-2018) ** UPDATE 04-10-2018 ** ⋅ Fixed issue with prioritized queue not working ⋅ Fixed issue with commit freezing the server and added so commit is now happening on a different thread. ** UPDATE 15-02-2017 ** ⋅ Now uses ...
by velocity
Sat Jan 21, 2017 9:38 am
Forum: General Discussion
Topic: SourcePython and EventScripts
Replies: 2
Views: 3139

SourcePython and EventScripts

Sourcepython cannot run together with EventScripts. The server won't start

Specs
Linux
Counter-Strike: Source
by velocity
Sun Jan 08, 2017 7:55 am
Forum: Plugin Development Support
Topic: MoveType
Replies: 11
Views: 7920

Re: MoveType

Yeah it's not working, how you suggest I do with hooking Entity.post_think?
by velocity
Sat Jan 07, 2017 7:10 am
Forum: Plugin Development Support
Topic: MoveType
Replies: 11
Views: 7920

Re: MoveType

Its not working:

TypeError: Property "m_nSequence" is of type ushort not int
by velocity
Mon Jan 02, 2017 10:54 pm
Forum: Plugin Development Support
Topic: MoveType
Replies: 11
Views: 7920

Re: MoveType

I dont see <Player>.move_type anywhere in the wiki? This attribute is generated dynamically via the data files . Each entity has specific attributes depending of their inheritance hierarchy. Adding them on the wiki is difficult since they are known at run-time depending of the entity type you get a...
by velocity
Sun Jan 01, 2017 11:50 pm
Forum: Plugin Development Support
Topic: MoveType
Replies: 11
Views: 7920

Re: MoveType

For example if I wanted to change player animation to WALK, how would I do that? WALK = _players._constants.PlayerAnimation.WALK

I know its PlayerAnimation.WALK, but how I connect the dots?
by velocity
Sun Jan 01, 2017 11:43 pm
Forum: Plugin Development Support
Topic: MoveType
Replies: 11
Views: 7920

Re: MoveType

from players.entity import Player from entities.constants import MoveType player = Player(1) player.move_type = MoveType.WALK Available move types: http://wiki.sourcepython.com/developing/modules/entities.constants.html?highlight=movetype#entities.constants.MoveType I dont see <Player>.move...
by velocity
Sun Jan 01, 2017 5:48 pm
Forum: Plugin Development Support
Topic: MoveType
Replies: 11
Views: 7920

MoveType

How to set the movetype of a player

like in sourcemod:

Syntax: Select all

SetEntityMoveType(client, MOVETYPE_WALK);
by velocity
Sat Dec 31, 2016 1:54 am
Forum: Plugin Development Support
Topic: setplayerlocation
Replies: 1
Views: 2419

setplayerlocation

This code doesn't work:

Syntax: Select all

for q in PlayerIter():
Delay(0, q.teleport, origin=Vector(0,0,0))
by velocity
Sat Oct 29, 2016 12:43 pm
Forum: Plugin Development Support
Topic: Check if Entity exists
Replies: 14
Views: 8847

Re: Check if Entity exists

Cancelling the delay is probably the best choice. However, you could also use something like this. from listeners.tick import Delay from entities.entity import BaseEntity ENTITY_TARGET = "flashbang_projectile" @OnEntityCreated def on_entity_created(entity): if not entity.classname...
by velocity
Sat Oct 22, 2016 11:36 pm
Forum: Plugin Development Support
Topic: Check if Entity exists
Replies: 14
Views: 8847

Re: Check if Entity exists

L'In20Cible wrote:For convenience, we could add an Entity.delay method that wrap the Delay class and internally cancel on entity deletion.

That would be cool
by velocity
Sat Oct 22, 2016 3:37 pm
Forum: Plugin Development Support
Topic: Check if Entity exists
Replies: 14
Views: 8847

Check if Entity exists

How would I check if an entity exists? Let's say I initialize one Entity(index) , how do I check if its still a valid index or if it even exists? from listeners.tick import Delay ENTITY_TARGET = "flashbang_projectile" @OnEntityCreated def on_entity_created(index, ptr): entity = Ent...
by velocity
Thu Oct 20, 2016 5:01 pm
Forum: Plugin Development Support
Topic: EmitSound
Replies: 4
Views: 3886

Re: EmitSound

Thank you, I'll test it! 25 was just to give an example. I'm only gonna emitsound for a very small area
by velocity
Thu Oct 20, 2016 4:15 pm
Forum: Plugin Development Support
Topic: EmitSound
Replies: 4
Views: 3886

EmitSound

How would I emitsound in sourcepython?

Syntax: Select all

es.emitsound("player", userid, "player/falldamage.wav", 1, 25)


I'm trying to mimic the player falldamage sound, but I'm not sure how to emitsound in sourcepython, so it's only a specific radius people hear the sound?
by velocity
Sat Oct 15, 2016 12:38 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9188

Re: Source-Python for CS:S

I saw it from the folder /Plugins/readme.md

Source.Python Plugin ReadMe

This directory is used for Source.Python plugins
to be loaded by the command "sp load".

Go to advanced search