Search found 1256 matches

by L'In20Cible
Mon Jan 19, 2015 7:20 pm
Forum: Plugin Development Support
Topic: Bots don't get weapons without using PlayerEntity.give_named_item()
Replies: 7
Views: 5028

Yeah, engine_server.client_command cannot execute the "use" command as clients' console are preventing its execution (not flagged as SERVER_CAN_EXECUTE). I believe this would works using IServerPluginHelpers::ClientCommand but unfortunately, we doesn't have it exposed for now. May seems dr...
by L'In20Cible
Mon Jan 19, 2015 11:35 am
Forum: Plugin Development Support
Topic: Bots don't get weapons without using PlayerEntity.give_named_item()
Replies: 7
Views: 5028

The problem is how you use tick_delays.delay. Unlike ES's gamethread, passed arguments doesn't need to be a tuple:[python]tick_delays.delay(1, engine_server.client_command, self.edict, 'use weapon_flashbang')[/python]
by L'In20Cible
Mon Jan 19, 2015 5:19 am
Forum: Plugin Development Support
Topic: Bots don't get weapons without using PlayerEntity.give_named_item()
Replies: 7
Views: 5028

Did you try to force "use weapon_flashbang" on them?
by L'In20Cible
Tue Jan 13, 2015 10:55 am
Forum: Plugin Development Support
Topic: Detect stuck player
Replies: 9
Views: 8192

EventScripts way of setting a player's angle is a bit tricky as in fact, it does turn cheats on, force the given player to execute "setang" with the given parameters and then reset previous cheats state. Your best bet, is to call CBaseEntity::Teleport. # ===================================...
by L'In20Cible
Tue Jan 13, 2015 7:48 am
Forum: Plugin Development Support
Topic: Detect stuck player
Replies: 9
Views: 8192

That's because the tested point is the base location of the player entity (which is located at his feet). The following works fine for me: # ============================================================================ # >> IMPORTS # ===================================================================...
by L'In20Cible
Mon Jan 12, 2015 9:49 pm
Forum: Plugin Development Support
Topic: Detect stuck player
Replies: 9
Views: 8192

I tested yesterday in no-clip mode and it was returning True whenever I was in a wall/outside the map.
by L'In20Cible
Mon Jan 12, 2015 12:18 am
Forum: Plugin Development Support
Topic: Detect stuck player
Replies: 9
Views: 8192

# ============================================================================ # >> IMPORTS # ============================================================================ # Source.Python # Engines from engines.trace import engine_trace from engines.trace import MASK_SOLID # Players from players.hel...
by L'In20Cible
Sun Jan 11, 2015 10:27 pm
Forum: API Design
Topic: Coding Style
Replies: 42
Views: 191770

The main point here is to keep your code human readable. Easier to follow multiple lines than a single one with no ending (especially when working in more than one files side by side which most of us does).
by L'In20Cible
Sun Jan 11, 2015 7:28 am
Forum: Plugin Development Support
Topic: Multiple buffs/debuffs with various times
Replies: 5
Views: 4122

I didn't check the entire code but something I noticed. def dndTick(): for players in PlayerGenerator(): myPlayer = dndPlayerDictionary[userid_from_playerinfo(players)] if not myPlayer.isdead: Why not using PlayerIter ? from filters.players import PlayerIter def dndTick(&...
by L'In20Cible
Tue Dec 30, 2014 9:14 am
Forum: Plugin Development Support
Topic: Compiling issue
Replies: 7
Views: 4805

It happened to me once and I had to delete and pull the entire repo again in order to fix the issues.
by L'In20Cible
Sun Dec 21, 2014 10:43 pm
Forum: Plugin Development Support
Topic: [TF2] VGUIMenu not working
Replies: 7
Views: 5245

The name of the panel is info not motd . However, it would requires a custom class for TF2 (just like CSS). Could you test the following and let me know if that works for you? from commands.client import ClientCommand from _messages import UserMessage from filters.recipients import RecipientFilter f...
by L'In20Cible
Sun Dec 21, 2014 9:50 pm
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 112956

I explained why this is happening here. Update your ../addons/source-python/packages/source-python/players/weapons/__init__.py to the lastest version and this should be fixed.
by L'In20Cible
Mon Dec 15, 2014 8:54 pm
Forum: Plugin Development Support
Topic: CSGO: Change team score
Replies: 5
Views: 4937

Use entity.set_prop_int('m_scoreTotal', score) for now. Those properties will be available from the entities_changes branch.
by L'In20Cible
Sat Dec 13, 2014 1:02 pm
Forum: Plugin Development Support
Topic: Developing a plugin for SP, need some personal support.
Replies: 3
Views: 3299

To be honest, I think you should create a new thread for every issue/interrogation you may encounter. That way, anyone having the same questions will have an answer (which is the main purpose of a forum, I believe).
by L'In20Cible
Wed Dec 03, 2014 3:43 pm
Forum: General Discussion
Topic: How to tell how much precache table has been used for csgo???
Replies: 7
Views: 8338

You cannot precache a model unless a map is loaded on the server.
by L'In20Cible
Wed Dec 03, 2014 2:24 am
Forum: Plugin Development Support
Topic: Import variable from plugin a to plugin b
Replies: 6
Views: 6253

_core.command.SPPluginManager has been moved. from core.manager import core_plugin_manager test = core_plugin_manager.get_plugin_instance('test') x = test.globals['x'] Works as soon as "test" was loaded with "sp load test" prior test2. from test.test impor...
by L'In20Cible
Mon Dec 01, 2014 10:32 pm
Forum: API Design
Topic: Downloadables
Replies: 11
Views: 12368

You need to pass a string so the quotes are needed. In your first example, you are trying to add the result of a math operation with variables that doesn't exists in your code.
by L'In20Cible
Sun Nov 30, 2014 11:14 am
Forum: Plugin Development Support
Topic: Add bot with custom name
Replies: 16
Views: 10447

bot_manager.create_bot is just creating a fake client, they cannot play. Use the bot_add command to add a bot linked to the CCSBot's AI.
by L'In20Cible
Sat Nov 29, 2014 7:50 am
Forum: Plugin Development Support
Topic: Add bot with custom name
Replies: 16
Views: 10447

There is no way to remove the BOT prefix from the server since this is formatted client-side. // client.dll @ sub_103AE6C0 .text:103AE9BE mov esi, offset aSfui_bot_decor ; "#SFUI_bot_decorated_name" And in the translation files you can find: "SFUI_bot_decorated_name" "BOT %s1" The only way I could s...

Go to advanced search