Search found 1256 matches

by L'In20Cible
Mon Mar 02, 2015 7:08 pm
Forum: News & Announcements
Topic: New Translations module available!!!
Replies: 8
Views: 11485

Syntax: Select all

my_message = SayText2(my_strings['Test2'])
Should be:

Syntax: Select all

my_message = SayText2(message=my_strings['Test2'])
As for the keywords, pass them to the send method:

Syntax: Select all

my_message.send(index, keyword='hey', keyword2='oh')
by L'In20Cible
Fri Feb 20, 2015 9:29 am
Forum: News & Announcements
Topic: Feature Requests
Replies: 28
Views: 59801

As far as freeze is concerned, I do agree that we should probably change the name of that property. Though, frozen doesn't really seem to fit to me since you're not really frozen. Maybe 'still' or 'stuck' works better (trying to think of something better than either of those). To be honnest, rather...
by L'In20Cible
Fri Feb 20, 2015 8:35 am
Forum: News & Announcements
Topic: Feature Requests
Replies: 28
Views: 59801

*Edit: actually teleporting should just be <PlayerEntity>.origin = <Vector> This also works with BaseEntity. I also want to add the angle property just like we currently have the origin property. Unfortunately, this won't work for a player (and some other entities such as projectiles that I know of...
by L'In20Cible
Sun Feb 15, 2015 10:23 pm
Forum: Plugin Development Support
Topic: Player hitbox
Replies: 6
Views: 6083

Changing data server-side may be enough for the tasks done by the server, but clients will still have old data precached. Recompiling and shipping a new model to clients is still the best option.
by L'In20Cible
Sun Feb 15, 2015 9:30 pm
Forum: Plugin Development Support
Topic: Player hitbox
Replies: 6
Views: 6083

You should rather recompile your models with their proper skeleton bones.
by L'In20Cible
Mon Feb 09, 2015 12:18 pm
Forum: General Discussion
Topic: Unable to load sourcepython.
Replies: 24
Views: 16217

Edit: Fixed by installing Microsoft Visual C++ 2010 Redistributable Package (x86) http://www.microsoft.com/en-us/download/details.aspx?id=5555 Ah, makes sense if you are running on x64. I'm disgusted by the lack of info given by the engine when attempting to load fails... I wonder if this is logged...
by L'In20Cible
Sun Feb 08, 2015 7:32 pm
Forum: General Discussion
Topic: Unable to load sourcepython.
Replies: 24
Views: 16217

Edit: I think the SP loader file is too small? 14KB? I had older SP file laying around that crashes the server but at least it says its loading. File size: 240KB Plugins: found file "source-python.vdf" [Source.Python] Loading... [SP-LOADER] Could not load library: _engines/plat-win/msvcr100d.dll Ay...
by L'In20Cible
Sun Feb 08, 2015 3:45 pm
Forum: General Discussion
Topic: Unable to load sourcepython.
Replies: 24
Views: 16217

I'd like to say that I'm getting the exact same logs when trying to load the orangebox build on csgo. Make sure you are using the right build:

https://github.com/Source-Python-Dev-Team/Source.Python/releases
by L'In20Cible
Sun Feb 08, 2015 8:46 am
Forum: General Discussion
Topic: Unable to load sourcepython.
Replies: 24
Views: 16217

Make sure auth users can read the loader (source-python.dll), as well.
by L'In20Cible
Wed Feb 04, 2015 7:26 am
Forum: Plugin Development Support
Topic: How to reset the player's sound to normal on player_blind?
Replies: 55
Views: 29084

You can most likely have this if you can find out which functions the game calls to play a sound and then block or modify them with SP. from engines.sound import engine_sound from filters.recipients import RecipientFilter from memory import Argument from memory import Convention from memory import ...
by L'In20Cible
Mon Jan 26, 2015 10:17 pm
Forum: Plugin Development Support
Topic: Proper way of dealing with spawnpoints
Replies: 13
Views: 7827

I checked the history and it was not working cause you omitted the player's mins/maxs. Taking the code I linked to you, a little modification should do the trick: # ============================================================================ # >> IMPORTS # ===========================================...
by L'In20Cible
Mon Jan 26, 2015 9:36 pm
Forum: Plugin Development Support
Topic: Proper way of dealing with spawnpoints
Replies: 13
Views: 7827

If so, he is not even using the link I pointed to him and wonder why this is not working, oh well. :)
by L'In20Cible
Mon Jan 26, 2015 8:35 pm
Forum: Plugin Development Support
Topic: Proper way of dealing with spawnpoints
Replies: 13
Views: 7827

Code?
by L'In20Cible
Sun Jan 25, 2015 10:16 pm
Forum: Plugin Development Support
Topic: How many units is the size of a player?
Replies: 2
Views: 2219

Syntax: Select all

size = (player.get_player_maxs() - player.get_player_mins()).z
This also update when the player is crouching, etc.
by L'In20Cible
Sun Jan 25, 2015 11:59 am
Forum: Plugin Development Support
Topic: Getting a PlayerEntity from player_connect?
Replies: 7
Views: 4929

Well, that event doesn't provide an "index" field. from events import Event from players.entity import PlayerEntity from players.helpers import index_from_userid @Event def player_activate(game_event): player = PlayerEntity(index_from_userid(game_event.get_int('user...
by L'In20Cible
Sun Jan 25, 2015 11:47 am
Forum: Plugin Development Support
Topic: Getting a PlayerEntity from player_connect?
Replies: 7
Views: 4929

You cannot get a PlayerEntity instance from that event/listener. The index is not linked to the other player's objects at this point. Try with the player_activate event, instead.
by L'In20Cible
Thu Jan 22, 2015 1:34 am
Forum: Plugin Development Support
Topic: Proper way of dealing with spawnpoints
Replies: 13
Views: 7827

You could loop through all spawnpoints and test their location using this code to ensure players won't get stuck if teleported there and assign him the first safe one.
by L'In20Cible
Tue Jan 20, 2015 9:46 am
Forum: Plugin Development Support
Topic: can't give 'item_assaultsuit' without using give_named_item()
Replies: 8
Views: 5395

The equivalence is... give_named_item. The following works fine for me on CS:GO. # _ZN11CBasePlayer13GiveNamedItemEPKciP13CEconItemViewb [[give_named_item]] offset_linux = 446 offset_windows = 445 arguments = STRING, INT, POINTER, BOOL return_type = POINTER from events import Event from players.enti...

Go to advanced search