Search found 11 matches

by marcowmadeira
Thu Jan 18, 2018 2:24 am
Forum: Plugin Development Support
Topic: Getting player properties slow?
Replies: 9
Views: 6712

Re: Getting player properties slow?

What's the best way to loop through all players in the OnTick event? Should we use a for loop and limit it to the maxplayers? Or is this a thing that we should completly avoid?
by marcowmadeira
Tue Mar 28, 2017 11:36 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Re: Detonate a smoke grenade

well, what exactly isnt working? does it still crash? the following code is working for me on windows. from commands import CommandReturn from commands.say import SayCommand from entities.entity import Entity from listeners import OnEntitySpawned from listeners.tick import Delay from mathlib import...
by marcowmadeira
Tue Mar 28, 2017 7:55 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Re: Detonate a smoke grenade

PhantomDancer wrote:if you use the following, does that create your desired "poping" effect? :

Syntax: Select all

entity.set_property_bool("m_bDidSmokeEffect",True)

Doesn't seem to do anything, unfortunately.
by marcowmadeira
Tue Mar 28, 2017 1:40 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Re: Detonate a smoke grenade

Please post the code to reproduce the crash (a copy and pasteable plugin) including the output of "sp info". Here it is: from commands import CommandReturn from commands.say import SayCommand from entities.entity import Entity from listeners import OnEntitySpawned from listeners.tick impo...
by marcowmadeira
Sat Mar 25, 2017 3:51 pm
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Re: Detonate a smoke grenade

Still not working, now it just crashes the server.

http://puu.sh/uXZJQ/a2e4b90292.png
by marcowmadeira
Sat Mar 25, 2017 10:24 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Re: Detonate a smoke grenade

[SP] Caught an Exception: Traceback (most recent call last): File "../addons/source-python/packages/source-python/listeners/tick.py", line 76, in _tick self.pop(0).execute() File "../addons/source-python/packages/source-python/listeners/tick.py", line 170, in execute return self...
by marcowmadeira
Fri Mar 24, 2017 1:36 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Re: Detonate a smoke grenade

They have their own detonation method based on this, is there a way to call that function?
by marcowmadeira
Thu Mar 23, 2017 12:19 pm
Forum: General Discussion
Topic: [CSGO] New Custom HUD (game_text)
Replies: 3
Views: 4531

Re: [CSGO] New Custom HUD (game_text)

Is there a way to change the size of the font? Based on valve's wiki, the size would be different based on the channel, but it might not work on csgo. :frown:
by marcowmadeira
Tue Mar 21, 2017 1:18 pm
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 17
Views: 11014

Detonate a smoke grenade

I'm writting a plugin to store players nades, so they can spawn a exact copy of it whenever they want, but i run into a problem, the smokes grenades and decoys doesn't detonate. I had the same problem for grenades but found the solution online, i simply had to call 'InitializeSpawnFromWorld' on that...
by marcowmadeira
Thu Nov 03, 2016 9:43 am
Forum: Plugin Development Support
Topic: Query client cvar
Replies: 6
Views: 5302

Re: Query client cvar

Thank you, this is it. :smile:
by marcowmadeira
Thu Nov 03, 2016 12:04 am
Forum: Plugin Development Support
Topic: Query client cvar
Replies: 6
Views: 5302

Query client cvar

Is it possible to query a client cvar? In sourcemod the command is QueryClientConVar, i tried to find in the documentation, but i don't think there is a function for it. Is there any alternative to do it?

Go to advanced search