Search found 569 matches

by iPlayer
Wed Nov 18, 2015 7:21 pm
Forum: Plugin Development Support
Topic: Questions on working with entities IO calls and keyvalues
Replies: 19
Views: 12888

I missed that when you call Entity.call_input with some particular value, the value should match the expected type of the input. For SetHealth it's int, for SetHUDVisibility it's bool. So basically, the above class will only work with either no parameters (,,) or string parameters. Is there no other...
by iPlayer
Tue Nov 17, 2015 4:34 pm
Forum: Plugin Development Support
Topic: Csgo motd
Replies: 21
Views: 20409

I've never used MOTD with local server pages, so I don't know - path relative to what? mod folder? E.g. cstrike/page.html?
by iPlayer
Tue Nov 17, 2015 3:07 pm
Forum: Plugin Development Support
Topic: player.switch_team() second argument
Replies: 3
Views: 3264

Thanks, guys.
Indeed, I got that info from this post.
by iPlayer
Tue Nov 17, 2015 1:05 pm
Forum: Plugin Development Support
Topic: player.switch_team() second argument
Replies: 3
Views: 3264

player.switch_team() second argument

Hi there again
So the first argument is the team to move a player to, the third one (boolean) is whether the message should not be printed to chat, but what does the second one stand for?
by iPlayer
Mon Nov 16, 2015 2:21 pm
Forum: Plugin Development Support
Topic: Questions on working with entities IO calls and keyvalues
Replies: 19
Views: 12888

Now what I am actually going to use in my plugin from filters.entities import EntityIter from listeners.tick import tick_delays # fire() definition from the above message class OutputConnection: def __init__(self, destroy_func, string): try: target_pattern, input_name, parameter, del...
by iPlayer
Mon Nov 16, 2015 1:21 pm
Forum: Plugin Development Support
Topic: Questions on working with entities IO calls and keyvalues
Replies: 19
Views: 12888

Okay, here's what I came up with def fire(source, target_pattern, input_name, parameter=None): if target_pattern.startswith('!'): if target_pattern not in ("!caller", "!activator", "!self"): return if source is None: return targets = (...
by iPlayer
Mon Nov 16, 2015 8:50 am
Forum: Plugin Development Support
Topic: Questions on working with entities IO calls and keyvalues
Replies: 19
Views: 12888

Got it! This will work:

Syntax: Select all

player.client_command("ent_fire func_door Open", server_side=True)
player.client_command("ent_fire * SetParent !activator", server_side=True) # Nasty stuff
by iPlayer
Mon Nov 16, 2015 5:20 am
Forum: Plugin Development Support
Topic: Questions on working with entities IO calls and keyvalues
Replies: 19
Views: 12888

Thanks for your reply. I know about the source code, and I must say it's very well documented. But all my researches stop as soon as it comes to C++ implementation. I got the first answer. But I'm not sure about your second answer: entity.call_input(name, value=None, caller=None, activator=None&...
by iPlayer
Mon Nov 16, 2015 3:24 am
Forum: Plugin Development Support
Topic: Questions on working with entities IO calls and keyvalues
Replies: 19
Views: 12888

Questions on working with entities IO calls and keyvalues

Hello, Source.Python community! I'm currently (by currently I mean at 6:00 am) porting my ES plugin to SP. Refactoring it, too. Everything seems to be OK, but still I've got 2 questions: 1. Say I have entities.entity.Entity instance or just entity index. How do I gain access to its keyvalues? In ES ...

Go to advanced search