Search found 962 matches

by Ayuto
Mon Jan 22, 2018 10:10 pm
Forum: Plugin Development Support
Topic: PreHook cancel/modify damage
Replies: 9
Views: 85

Re: PreHook cancel/modify damage

What method do you use to set the location?
by Ayuto
Mon Jan 22, 2018 9:56 pm
Forum: Plugin Development Support
Topic: PreHook cancel/modify damage
Replies: 9
Views: 85

Re: PreHook cancel/modify damage

We haven't added a spawn function for CS:S (only for CS:GO. It's called _spawn). But I doubt the origin would already be set. I assume it's set during the spawn call (you can try a post-hook), but I haven't checked that. What exactly are you trying to do?
by Ayuto
Mon Jan 22, 2018 6:52 pm
Forum: Plugin Development Support
Topic: PreHook cancel/modify damage
Replies: 9
Views: 85

Re: PreHook cancel/modify damage

The list of built-in functions/addresses depends on the game and the entity (e.g. players have other functions than other entities). You can use the following snippet to print a list of functions, their arguments and their return types: from entities.entity import Entity from memory import Function ...
by Ayuto
Sun Jan 21, 2018 3:33 pm
Forum: Plugin Development Support
Topic: PreHook cancel/modify damage
Replies: 9
Views: 85

Re: PreHook cancel/modify damage

Yes, a pre-hook is exactly what you need. Here is a small example: from players.entity import Player from entities.hooks import EntityPreHook from entities.hooks import EntityCondition from entities import TakeDamageInfo import memory @EntityPreHook(EntityCondition.is_player, 'on_take_damage...
by Ayuto
Mon Jan 15, 2018 5:55 pm
Forum: Plugin Development Support
Topic: Getting player properties slow?
Replies: 9
Views: 175

Re: Getting player properties slow?

With the latest changes the performance has changed drastically. Running the above code again will result in the following output: 0.15603045563281626 0.2694162790844672 Currently, the bottleneck is retrieving the view angle. If you comment out the lines that retrieve it and run the code again, you ...
by Ayuto
Mon Jan 15, 2018 5:08 pm
Forum: Plugin Development Support
Topic: Players movementspeed
Replies: 7
Views: 115

Re: Players movementspeed

Looks like you missed the part "for a certain amount of time". Here's what L'In20Cible's code would look like with that addition: from events import Event from players.entity import Player @Event('player_spawn') def _player_spawn(game_event): """Fired...
by Ayuto
Sat Jan 13, 2018 10:25 am
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 96

Re: CS:S send Buy Menu anytime/anywhere

The only way I have found so far is using HideHudFlags.PLAYERDEAD. But that hides a lot more than just the shopping cart icon. :grin:
by Ayuto
Fri Jan 12, 2018 6:08 pm
Forum: Plugin Releases
Topic: [ANY] Country tag
Replies: 22
Views: 1187

Re: [ANY] Country tag

Same issue like the last time:
viewtopic.php?p=10725#p10725
by Ayuto
Fri Jan 12, 2018 6:08 pm
Forum: Plugin Requests
Topic: [HL2:DM] Jet Pack Help
Replies: 20
Views: 1444

Re: [HL2:DM] Jet Pack Help

I have updated Satoon's post:
viewtopic.php?f=37&t=1358&p=9011#p9011
by Ayuto
Thu Jan 11, 2018 5:54 pm
Forum: Plugin Development Support
Topic: TypedSayCommand after unloading/loading plugin
Replies: 6
Views: 87

Re: TypedSayCommand after unloading/loading plugin

Your code works fine on my machine (Windows/CS:S). Can you please post the output of "sp info". I have, say, test.py. Skipping imports, the code is: @TypedSayCommand('!myteam') def cmd_on_myteam(command_info): print('Showing team') player = Player...
by Ayuto
Thu Jan 11, 2018 5:50 pm
Forum: General Discussion
Topic: [Source.Python] Loading... and nothing more
Replies: 4
Views: 123

Re: [Source.Python] Loading... and nothing more

That's a surprising error. Please post the full log. Also check whether this file exists on your server:
../addons/source-python/Python3/string.py
by Ayuto
Thu Jan 11, 2018 5:44 pm
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 96

Re: CS:S send Buy Menu anytime/anywhere

I tried two things: ⋅ Modify the existing buyzones (make them bigger). ⋅ Create new buyzones. Unfortunately, both didn't work, so here is the hacky solution: import memory from entities.hooks import EntityPreHook from entities.hooks import EntityCondition from entities.entity imp...
by Ayuto
Tue Jan 09, 2018 4:04 pm
Forum: General Discussion
Topic: [Source.Python] Loading... and nothing more
Replies: 4
Views: 123

Re: [Source.Python] Loading... and nothing more

Please add +developer 5 to your command line and try again. That should give us a little bit more information.
by Ayuto
Wed Jan 03, 2018 7:59 pm
Forum: Development Status Updates
Topic: Development status update (December 2017)
Replies: 0
Views: 55

Development status update (December 2017)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed a typo. ⋅  Fixed weapon_m249 weapon clip (CS:S). ⋅ Additions: ⋅  Added register_close_callback decorator to Menus. ⋅  Added Player.raw_steamid. ⋅  Added th...
by Ayuto
Wed Jan 03, 2018 7:32 pm
Forum: Plugin Development Support
Topic: Getting player properties slow?
Replies: 9
Views: 175

Re: Getting player properties slow?

EntityIter, PlayerIter, Entity and Player are the classes we really need be speed up.

If you show me your listener, I might can give you a few more hints.
by Ayuto
Wed Jan 03, 2018 4:52 pm
Forum: Plugin Development Support
Topic: Getting player properties slow?
Replies: 9
Views: 175

Re: Getting player properties slow?

from timeit import Timer ITERATIONS = 10000 result = Timer(""" get_origin(player) get_eye_location(player) get_view_angle(player) get_velocity(player) """, """ from mathlib import QAngle from entities.entity import Bas...
by Ayuto
Wed Jan 03, 2018 6:48 am
Forum: Plugin Development Support
Topic: Getting player properties slow?
Replies: 9
Views: 175

Re: Getting player properties slow?

Yes, getting those properties is slow due to the current implementation. You can speed up things by using BaseEntity. I can show you an example when I come home today.
by Ayuto
Sat Dec 30, 2017 3:46 pm
Forum: General Discussion
Topic: Discord "server" for sp
Replies: 1
Views: 56

Re: Discord "server" for sp

No, there is no official discord server and there are no plans to open one. At least no plans have been communicated/discussed.
by Ayuto
Sat Dec 30, 2017 12:39 pm
Forum: Plugin Releases
Topic: GunGame v1.1.1
Replies: 27
Views: 892

Re: GunGame v1.1.1

Last night I had the chance to test it on CS:S. It worked very well. Well done!

Only one thing was a little bit confusing. The default weapon order contains smokegrenade and flashbang. Shouldn't those kill you instantly once you are hit?
by Ayuto
Sun Dec 24, 2017 10:55 am
Forum: Plugin Requests
Topic: [HL2:DM] Spawn a Christmas Tree
Replies: 9
Views: 183

Re: [HL2:DM] Spawn a Christmas Tree

I have fixed the syntax error. The reason why you are not seeing anything is probably, because you model path is not correct. Where is your model stored?

Go to advanced search