Search found 62 matches

by Hedgehog
Sat Feb 14, 2015 8:57 pm
Forum: News & Announcements
Topic: Feature Requests
Replies: 28
Views: 58397

Thanks :) There is still an identation problem on lines 71-75 . My solution for names: from players.entity import PlayerEntity class PlayerEntityExtended(PlayerEntity): def __new__(cls, index): self = super(PlayerEntityExtended, cls).__new__(cls, index) self._name = N...
by Hedgehog
Fri Feb 13, 2015 8:24 pm
Forum: News & Announcements
Topic: Feature Requests
Replies: 28
Views: 58397

Implement this fix , please. I didn't push it to the main repo by myself because I'm not good in C/C++, so I thought that it would be better if you double check my work, change it in the way you like and then push it to the project repo :) UPD: Everything is very good, except issue #27, of course if...
by Hedgehog
Sun Jan 18, 2015 7:57 pm
Forum: Plugin Development Support
Topic: Health not an attribute
Replies: 4
Views: 4021

I've also found that speed KeyValue in CS:S is always 0.0, so it would be better to overwrite it in property section of CBasePlayer.ini to

Syntax: Select all

localdata.m_flLaggedMovementValue = speed
by Hedgehog
Sun Nov 23, 2014 3:59 pm
Forum: Plugin Development Support
Topic: record command
Replies: 5
Views: 4624

I think you can't exec record command on client...

To record demo on the server side you need to enable SourceTV and use this command:
tv_record demo_test
by Hedgehog
Sat Nov 08, 2014 5:42 pm
Forum: General Discussion
Topic: Debugging
Replies: 7
Views: 6726

I was talking about debugging of Source.Python's plugins. For example you can setup some breakpoint and server pauses on it (I thought there can be a chance of doing this...), then you can run your plugin by steps.

Thanks, but I just got tired from using print and loggers :)
by Hedgehog
Sat Nov 08, 2014 5:34 pm
Forum: Plugin Development Support
Topic: Players list at LevelInit
Replies: 1
Views: 2427

Players list at LevelInit

Is it possible to retrieve a list of players (or at least their userids) in LevelInit or/and LevelShutdown listeners?

It seams that none of the conversions and PlayerGenerator (PlayerIter) see any players.
by Hedgehog
Sat Nov 08, 2014 3:22 am
Forum: General Discussion
Topic: Debugging
Replies: 7
Views: 6726

:(

[10 symbols]
by Hedgehog
Fri Nov 07, 2014 6:09 pm
Forum: General Discussion
Topic: Debugging
Replies: 7
Views: 6726

I'm tired from this... For what is debug build for? I thought it was created to something with breakpoints and steps.
by Hedgehog
Fri Nov 07, 2014 5:16 pm
Forum: General Discussion
Topic: Debugging
Replies: 7
Views: 6726

Debugging

How to debug Source.Python plugin?
by Hedgehog
Tue Oct 07, 2014 6:01 pm
Forum: Plugin Development Support
Topic: How to make player invisible?
Replies: 12
Views: 12166

In case of educated guess it can be caused by game default players skins (some tricky textures etc).
by Hedgehog
Tue Oct 07, 2014 6:20 am
Forum: Plugin Development Support
Topic: How to make player invisible?
Replies: 12
Views: 12166

In case you are looking for fully invisibility: (solutions from SM forums) ⋅ Hook SetTransmit (read this: http://forums.sourcepython.com/showthread.php?570-Best-way-to-hook-something-on-player ) ⋅ Set m_flModelScale player prop to 0.00000001 ⋅ Set m_fEffects player prop...
by Hedgehog
Mon Oct 06, 2014 8:36 pm
Forum: Plugin Development Support
Topic: need working script that acutally switches player for csgo
Replies: 26
Views: 18990

Try to add 2 seconds delay for changing players teams and/or godmode for all alive players. Also, PlayerEntity.switch_team function should not kill player on team change. i tried respawning the player after they are switched but they respawn as their current team LOL ......... but if i use PlayerEn...
by Hedgehog
Mon Oct 06, 2014 7:59 pm
Forum: Plugin Development Support
Topic: need working script that acutally switches player for csgo
Replies: 26
Views: 18990

Try to add 2 seconds delay for changing players teams and/or godmode for all alive players.

Also, PlayerEntity.switch_team function should not kill player on team change.
by Hedgehog
Sat Oct 04, 2014 7:58 pm
Forum: Plugin Development Support
Topic: PlayerEntity Attributes (Cash)
Replies: 14
Views: 10591

Something like this: from players.entity import PlayerEntity _cache = {} class MyPlayerEntity(PlayerEntity): def __new__(cls, userid): index = index_from_userid(userid) if not index: raise ValueError('Invalid userid "%s"' % userid) if not index in _c...
by Hedgehog
Sat Oct 04, 2014 5:05 pm
Forum: Plugin Development Support
Topic: PlayerEntity Attributes (Cash)
Replies: 14
Views: 10591

It happens only if you saved PlayerEntity.
by Hedgehog
Thu Oct 02, 2014 8:48 am
Forum: Plugin Development Support
Topic: How to emit sound??
Replies: 22
Views: 19210

Sorry, I forgot to import it...

Syntax: Select all

from engines.sound import engine_sound


And as I said earlier
Hedgehog wrote:I'm not sure that it will work in CS:GO, but you should try...
by Hedgehog
Thu Oct 02, 2014 4:38 am
Forum: Plugin Development Support
Topic: How to emit sound??
Replies: 22
Views: 19210

Something like this: from engines.server import engine_server from engines.sound import Sound, VOL_NORM, SOUND_FROM_WORLD from events import Event from listeners import LevelInit my_sound = Sound((), SOUND_FROM_WORLD, "cheer/cheer_1.wav", download=True, volume=VOL_NORM) def...
by Hedgehog
Sun Sep 28, 2014 12:14 pm
Forum: Plugin Development Support
Topic: How to emit sound??
Replies: 22
Views: 19210

Some time ago when engine_sound.emit_sound was crashing server in CS:S as temporary fix I used this (with manual sound precache in load and level init listener): EngineServer.client_command(edict, 'play some/cool/sound.wav') I'm not sure that it will work in CS:GO, but you should try...
by Hedgehog
Sat Sep 27, 2014 5:16 pm
Forum: General Discussion
Topic: Missing sqlite linux binary
Replies: 2
Views: 3659

Missing sqlite linux binary

Using sqlite on Linux server cause this error: [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/plugins/manager.py', line 72, in __missing__ instance = self.instance(plugin_name, self.base_import) File '../addons/source-python/packages...

Go to advanced search