Search found 793 matches

by L'In20Cible
Tue Mar 27, 2018 1:30 am
Forum: Whatever
Topic: Free games!!
Replies: 34
Views: 5929

Re: Free games!!

by L'In20Cible
Wed Mar 21, 2018 10:44 pm
Forum: Plugin Development Support
Topic: EntityHook test_function not working?
Replies: 8
Views: 391

Re: EntityHook test_function not working?

I've tried implementing this solution however I am now getting errors thrown when picking up weapons. [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\plugins\timer\core\zone.py", line 163, in pre_to uch parent.touch.call_trampoline(other) File &q...
by L'In20Cible
Wed Mar 21, 2018 5:24 am
Forum: Plugin Development Support
Topic: EntityHook test_function not working?
Replies: 8
Views: 391

Re: EntityHook test_function not working?

You will have to block the original call and reproduce what it does by calling the trampoline for their parents. I guess the workaround you are mentioning is the following: viewtopic.php?f=20&t=1447&p=9615#p9615
by L'In20Cible
Wed Mar 21, 2018 3:57 am
Forum: Plugin Development Support
Topic: EntityHook test_function not working?
Replies: 8
Views: 391

Re: EntityHook test_function not working?

This is not how it works. The test_function is only used to determine from which entity the method is retrieved and hooked from but filtering the calls is your responsibility. Just add a call to your test function into your callback and return the call if it fails.
by L'In20Cible
Sun Feb 18, 2018 11:10 am
Forum: Plugin Development Support
Topic: [CSS]Exception when reading ammo key value
Replies: 4
Views: 449

Re: [CSS]Exception when reading ammo key value

Some key values are hard-coded and are not returning true/false on success/failure which cause our internal check to fail for them. We removed the check for the setter method and should probably remove it for the getter method as well.

EDIT: Went ahead and removed that check.
by L'In20Cible
Tue Feb 13, 2018 5:45 pm
Forum: Plugin Development Support
Topic: Changing View Model
Replies: 6
Views: 542

Re: Changing View Model

Do it in a post_think hook.
by L'In20Cible
Thu Feb 08, 2018 3:01 am
Forum: Plugin Development Support
Topic: [CS GO] Make a prop copy an animation
Replies: 7
Views: 607

Re: [CS GO] Make a prop copy an animation

Is it possible to combine it without using entity.teleport and trying to choose teleport coordinates manually? That attachment is the "flashlight" origin. From a server-side plugin, you will need to move the weapon entity to the bone and parent it there because the rendered placement is h...
by L'In20Cible
Fri Feb 02, 2018 6:06 am
Forum: Plugin Development Support
Topic: gg_ffa_bots
Replies: 3
Views: 405

Re: gg_ffa_bots

I'm currently on the phone, but the symbol looks like stack_data[1] is an IGameEvent. Correct. If an argument was [1] using SPE, it will be [2] using SP because SPE added the this pointer at the end while SP insert it at the beginning. As for the signatures, you can check BotAttackControl on SM; I ...
by L'In20Cible
Tue Jan 30, 2018 4:59 pm
Forum: Plugin Development Support
Topic: Detonating grenades crashes CS:GO server
Replies: 4
Views: 367

Re: Detonating grenades crashes CS:GO server

Try 238, I think I forgot to take into consideration the fast-destructor inserted in the dispatch table. Either that or my server was outdated. If 238 doesn't works, just play with that offset until it does and I will test it out tonight unless someone else extracted the right one by then.
by L'In20Cible
Tue Jan 30, 2018 4:52 pm
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 42
Views: 7884

Re: Parachute v0.03!

You are using a different version. Download this version: Parachute_v0.03.zip And change the code of ../parachute.py by the one I posted above . I won't be supporting the old models, even if I have permission from SWAT_88 to use/ship them, because they are not adapted by the new system of parenting ...
by L'In20Cible
Tue Jan 30, 2018 2:55 pm
Forum: Plugin Development Support
Topic: Detonating grenades crashes CS:GO server
Replies: 4
Views: 367

Re: Detonating grenades crashes CS:GO server

The offset is most likely outdated on CS:GO. You can try to increase/decrease it for now: ../data/source-python/entities/csgo/CHEGrenadeProjectile.ini EDIT: Seems to have increased to 237: .rodata:00F66508 off_F66508 dd offset sub_A9E3D0 ; DATA XREF: sub_A9E3D0+6↑o .rodata:00F66508 ; sub_A9E3F0+20↑o...
by L'In20Cible
Tue Jan 30, 2018 12:56 pm
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 42
Views: 7884

Re: Parachute v0.03!

I didn't compile a model for BM:S, but I believe it use the same version as OB. Try this: # ../addons/source-python/plugins/parachute/parachute.py # ============================================================================ # >> IMPORTS # ===========================================================...
by L'In20Cible
Fri Jan 19, 2018 10:22 am
Forum: Plugin Development Support
Topic: Check for custom button to be pressed ?
Replies: 2
Views: 331

Re: Check for custom button to be pressed ?

Unfortunately, this is not possible. Source.Python is a server-side plugin so it relies on the information that is networked and the clients doesn't send anything to the server unless there is a command bound to a key that needs to be send to the server. Binding a key to say_team works because the c...
by L'In20Cible
Thu Jan 18, 2018 9:21 pm
Forum: Plugin Development Support
Topic: SayCommands and args
Replies: 2
Views: 343

Re: SayCommands and args

Hm, command_string works fine for me. from commands.say import SayCommand @SayCommand('test') def _test_command(command, index, team_only=False): if not len(command) > 1: return print('No argument given.') print('command_string =', command....
by L'In20Cible
Thu Jan 18, 2018 5:28 am
Forum: Plugin Development Support
Topic: Getting player properties slow?
Replies: 9
Views: 825

Re: Getting player properties slow?

I think the most efficient way would be to keep a synced dictionary so you don't have to iterate and instantiate every tick. Something like this for example: from entities.helpers import index_from_edict from listeners import OnEntityCreated from listeners import OnTick from players import PlayerGen...
by L'In20Cible
Mon Jan 15, 2018 5:28 pm
Forum: Plugin Development Support
Topic: Players movementspeed
Replies: 7
Views: 632

Re: Players movementspeed

Yep, overlooked that part. :grin:
by L'In20Cible
Mon Jan 15, 2018 4:54 pm
Forum: Plugin Development Support
Topic: Players movementspeed
Replies: 7
Views: 632

Re: Players movementspeed

from events import Event from players.entity import Player @Event('player_spawn') def _player_spawn(game_event): """Fired when a player spawns.""" # Get a Player instance of the player spawning... player = Player.from_userid(game_event.get_i...

Go to advanced search