Search found 440 matches

by iPlayer
Fri Dec 02, 2016 9:28 pm
Forum: Plugin Development Support
Topic: Restart the round
Replies: 30
Views: 1284

Re: Restart the round

I guess that's a console variable, not a command. So you need to find it and set it to 1.
There must be some Source handler attached to that variable.
by iPlayer
Thu Nov 10, 2016 1:37 pm
Forum: Plugin Development Support
Topic: CVEngineServer::CreateFakeClient
Replies: 12
Views: 639

Re: CVEngineServer::CreateFakeClient

L'In20Cible wrote:You cannot spawn fake clients as they have no AI bound to them.

How do third-party bots work though? Like Botrix. If I'm not mistaken, they spawn fake clients and then control them.
by iPlayer
Wed Nov 09, 2016 3:47 pm
Forum: Plugin Development Support
Topic: CVEngineServer::CreateFakeClient
Replies: 12
Views: 639

Re: CVEngineServer::CreateFakeClient

What about selecting class? For TF2 it may occur essential for them to be somebody.

Try this:

Syntax: Select all

self.player.set_property_int('m_iClass', 1)    # Spawn as Scout
by iPlayer
Tue Nov 08, 2016 9:37 am
Forum: Plugin Development Support
Topic: CVEngineServer::CreateFakeClient
Replies: 12
Views: 639

Re: CVEngineServer::CreateFakeClient

I personally used this code (simplified) from engines.server import execute_server_command from listeners import OnClientActive from players.entity import Player _requested_bots = [] @OnClientActive def listener_on_client_active(index): player = Player(index) if player.steamid != &qu...
by iPlayer
Sun Nov 06, 2016 2:35 pm
Forum: Plugin Requests
Topic: Weapon Cleaner
Replies: 4
Views: 283

Re: Weapon Cleaner

After a second thought... DropWeapon function actually does some important stuff. It actually removes weapon inthandle from player's properties. To be certain, from m_hMyWeapons array, that is used, for instance, here . If we prevent this function from execution, I suspect that weapon's inthandle wo...
by iPlayer
Sun Nov 06, 2016 9:20 am
Forum: Plugin Requests
Topic: Weapon Cleaner
Replies: 4
Views: 283

Re: Weapon Cleaner

I've had weird random crashes when removing an entity in a pre-hook without preventing function from further executing. Invincible told me it happened because function may try to continue operating on a removed entity. So I'd

Syntax: Select all

return False
in both hooks after removing it.
by iPlayer
Sat Nov 05, 2016 7:27 pm
Forum: Plugin Development Support
Topic: finding out who used func_button?
Replies: 4
Views: 175

Re: finding out who used func_button?

targetname -> target_name
by iPlayer
Fri Nov 04, 2016 3:58 pm
Forum: Plugin Development Support
Topic: Admin Chat
Replies: 4
Views: 240

Re: Admin Chat

You can also add a callback that gets called when an unauthorized player tries to execute the command. from commands.typed import TypedClientCommand ... def on_test_failed(command_info, args): NO_PERMISSION_ERROR.send(command_info.index) @TypedSayCommand(TSAY_COMMANDS, ADMIN_CHA...
by iPlayer
Fri Nov 04, 2016 3:31 pm
Forum: Plugin Development Support
Topic: Admin Chat
Replies: 4
Views: 240

Re: Admin Chat

I would recommend using TypedSayCommand instead of regular one. It supports permissions out-of-the-box, handles the case with invalid permissions, and has a really convenient way of providing you the arguments. http://wiki.sourcepython.com/developing/module_tutorials/commands.html#using-permissions
by iPlayer
Thu Nov 03, 2016 7:23 pm
Forum: Plugin Development Support
Topic: Removal of print?
Replies: 25
Views: 970

Re: Removal of print?

Update: just tested

Syntax: Select all

print("Hey there", end='')

and it didn't print anything.

Doing

Syntax: Select all

print("Hey there2")

after that printed
Hey thereHey there2

Maybe their sys.stdout.line_buffering attribute is set to False?
by iPlayer
Thu Nov 03, 2016 7:17 pm
Forum: Plugin Development Support
Topic: Removal of print?
Replies: 25
Views: 970

Re: Removal of print?

Works for me on CS:S SRCDS and Windows 7. For reference, <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp866'>_CHUNK_SIZE = 8192 __class__ = <class '_io.TextIOWrapper'> __del__ = <method-wrapper '__del__' of _io.TextIOWrapper object at 0x006195B0> __delattr__ = <method-wrapper '__delattr__' ...
by iPlayer
Thu Nov 03, 2016 6:54 pm
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 38
Views: 1372

Re: [HL2:DM] Headshot Help

What did you shoot them with? oO
by iPlayer
Thu Nov 03, 2016 2:55 pm
Forum: Plugin Development Support
Topic: Query client cvar
Replies: 6
Views: 284

Re: Query client cvar

Edit: fixed my misunderstanding of how convar querying works Not your fault, the docstring of that method is very mis-leading. I will try to update it soon. What does that method return though? An integer called "cookie"? If so, I believe this cookie might prove very useful to determine w...
by iPlayer
Thu Nov 03, 2016 1:01 am
Forum: Plugin Development Support
Topic: Query client cvar
Replies: 6
Views: 284

Re: Query client cvar

This might work? from engines.server import engine_server from entities.helpers import edict_from_index from listeners import OnQueryCvarValueFinished def query_player_convar(index, cvar_name): edict = edict_from_index(index) engine_server.start_query_cvar_value(edict, cvar_name...
by iPlayer
Tue Nov 01, 2016 3:37 pm
Forum: Plugin Requests
Topic: [HL2DM] Remove Map Overlays
Replies: 21
Views: 826

Re: [HL2DM] Remove Map Overlays

And I have there are several maps that have exactly the same.


Well, you'll have to have individual approach for each map.
by iPlayer
Tue Nov 01, 2016 3:00 pm
Forum: Plugin Requests
Topic: [HL2DM] Remove Map Overlays
Replies: 21
Views: 826

Re: [HL2DM] Remove Map Overlays

Why not check hammerid instead? Is index in this case guaranteed to be the same?
by iPlayer
Tue Nov 01, 2016 10:56 am
Forum: Plugin Requests
Topic: [HL2DM] Remove Map Overlays
Replies: 21
Views: 826

Re: [HL2DM] Remove Map Overlays

dm_stalker_pripyat_aw_kb
FastDL
by iPlayer
Tue Nov 01, 2016 1:23 am
Forum: Plugin Requests
Topic: [HL2DM] Remove Map Overlays
Replies: 21
Views: 826

Re: [HL2DM] Remove Map Overlays

I should've mentioned this, but I decompiled the map and the entity to create the overlay was indeed env_screenoverlay
by iPlayer
Fri Oct 28, 2016 11:52 pm
Forum: Plugin Releases
Topic: RCONGuard
Replies: 0
Views: 242

RCONGuard

RCONGuard Description This plugin removes the possibility to change or read rcon_password . This may turn out to be useful. In some cases. Well, against point_servercommand (not a concern on CS:GO though, and only if you don't want to completely remove it). Or maybe if someone brute forces or gets ...
by iPlayer
Fri Oct 28, 2016 1:52 pm
Forum: Plugin Requests
Topic: [HL2DM] Remove Map Overlays
Replies: 21
Views: 826

Re: [HL2DM] Remove Map Overlays

Try removing point_clientcommand

Go to advanced search