Search found 849 matches

by L'In20Cible
Thu Jan 17, 2019 1:43 am
Forum: Plugin Development Support
Topic: SetTransmit on entities
Replies: 23
Views: 1649

Re: SetTransmit on entities

I guess you are right, thanks for the optimization it helped a lot. I've been running some tests locally with 19 bots by running the code you posted on GitHub and while the net_graph was bouncing red sometimes, I didn't notice any "lags" whatsoever while playing. I've also joined some of ...
by L'In20Cible
Wed Jan 16, 2019 8:32 pm
Forum: Plugin Development Support
Topic: SetTransmit on entities
Replies: 23
Views: 1649

Re: SetTransmit on entities

Definitely an improvement, but it still lags with too many people (after 6 real players, bots apparently take it more nicely) and especially if you are making a plugin that tries to hide everyone because then you have to do same (make_object again) with edict = CheckTransmitInfo._obj(args[1]).clien...
by L'In20Cible
Wed Jan 16, 2019 1:55 pm
Forum: Plugin Development Support
Topic: SetTransmit on entities
Replies: 23
Views: 1649

Re: SetTransmit on entities

Alright, I didn't know. (I did not edit it before confirmation from you guys), but I still have a lag issue :/ I've made some tests and while acceptable, make_object is indeed a bit slow. For 1 million iterations: 1.4670946598052979 I suspect this is caused by MakeObject and then ExtractPointer bot...
by L'In20Cible
Wed Jan 16, 2019 4:49 am
Forum: Plugin Development Support
Topic: SetTransmit on entities
Replies: 23
Views: 1649

Re: SetTransmit on entities

Edit (nothing related): In CBaseEntity.ini (csgo) there is missing an argument and return_type: # _ZN11CBaseEntity11SetTransmitEP18CCheckTransmitInfob [[set_transmit]] offset_linux = 24 offset_windows = 23 arguments = POINTER, POINTER, BOOL return_type = BOOL No, the data is correct. The TypeManage...
by L'In20Cible
Tue Jan 08, 2019 7:46 pm
Forum: General Discussion
Topic: Cannot find libffi.so.6
Replies: 2
Views: 538

Re: Cannot find libffi.so.6

by L'In20Cible
Thu Dec 20, 2018 12:01 am
Forum: Whatever
Topic: Free games!!
Replies: 39
Views: 15100

Re: Free games!!

by L'In20Cible
Fri Dec 14, 2018 4:34 am
Forum: Whatever
Topic: Free games!!
Replies: 39
Views: 15100

Re: Free games!!

by L'In20Cible
Wed Dec 12, 2018 3:49 am
Forum: Plugin Development Support
Topic: [CS:GO] Accept Input Error
Replies: 3
Views: 314

Re: [CS:GO] Accept Input Error

velocity wrote:Thanks for that, but I still want to know why I get an error

You are getting an error because whatever is stored into stack_data[1], it cannot be decoded as a string. This can be caused by outdated offset, prototype or even convention; hence why I asked if you are sure your data is up-to-date.
by L'In20Cible
Tue Dec 11, 2018 4:57 am
Forum: Plugin Development Support
Topic: [CS:GO] Accept Input Error
Replies: 3
Views: 314

Re: [CS:GO] Accept Input Error

Are you sure your data is up-to-date? That being said, I'm not even sure why you are hooking this method instead of hooking the inputs your are looking for directly. Basically, an input is only a member method of an entity class. The AcceptInput method is an helper that read the datamap of the entit...
by L'In20Cible
Thu Dec 06, 2018 2:26 am
Forum: Plugin Development Support
Topic: CEventAction hook
Replies: 12
Views: 976

Re: CEventAction hook

I have updated to the latest release and I'm now available to use the code, but it appears that I get a ValueError even tho I know (the trigger_multiple) has an OnTrigger output (Checked with hammer). @EntityPreHook(EntityCondition.is_player, "accept_input") def pre_accept_input&#...
by L'In20Cible
Sun Dec 02, 2018 6:43 pm
Forum: Plugin Development Support
Topic: CEventAction hook
Replies: 12
Views: 976

Re: CEventAction hook

I did "sp update" but I get import error: File "../addons/source-python/plugins/trikzcafe/region_phase.py", line 18, in <module> from entities import BaseEntityOutput, EventAction EDIT: ImportError: cannot import name 'BaseEntityOutput Due to the recent buildbot changes , bu...
by L'In20Cible
Sat Dec 01, 2018 7:19 pm
Forum: Plugin Development Support
Topic: CEventAction hook
Replies: 12
Views: 976

Re: CEventAction hook

It's raw and hard-coded but here is a working example: from entities.datamaps import Variant from memory import NULL, get_size from players.entity import Player # Get a Player instance pl = Player(1) # Add some outputs for testing pl.call_input('AddOutput', 'OnIgnite !self,Ig...
by L'In20Cible
Sat Dec 01, 2018 3:29 pm
Forum: Plugin Development Support
Topic: CEventAction hook
Replies: 12
Views: 976

Re: CEventAction hook

Yes, but you don't need to sigscan the deleter of this class to access it. You need to restructure the class, grab an object pointer and read it without deleting it.
by L'In20Cible
Sat Dec 01, 2018 5:54 am
Forum: Plugin Development Support
Topic: CEventAction hook
Replies: 12
Views: 976

Re: CEventAction hook

velocity wrote:I'm trying to get more information about the entities in CS:GO. A way to do that is to access the CEventAction:__operator_delete function, but IIRC is too small to get a signature.

How would hooking/calling the deleter of a registered output action gives you information? :eek:
by L'In20Cible
Fri Nov 30, 2018 4:16 am
Forum: Plugin Development Support
Topic: Strange behavior with my implementation of player.set_active_weapon()
Replies: 6
Views: 457

Re: Strange behavior with my implementation of player.set_active_weapon()

A couple other minor optimizations from that code: Technically, using the prefix would break for some other games where the prefix is not always used/consistent. Plus, we already have access to the name without any prefix, so why bother. # Build a list of weapons without prefix weapons = [weapon.ba...
by L'In20Cible
Thu Nov 29, 2018 3:52 am
Forum: Plugin Development Support
Topic: Strange behavior with my implementation of player.set_active_weapon()
Replies: 6
Views: 457

Re: Strange behavior with my implementation of player.set_active_weapon()

Your code could be something like the following: # ../addons/source-python/weapons/weapons.py # ============================================================================ # >> IMPORTS # ============================================================================ # Source.Python Imports # Commands ...
by L'In20Cible
Tue Nov 27, 2018 2:34 am
Forum: Plugin Development Support
Topic: [CS:GO] Check if entity is hidden to begin with
Replies: 5
Views: 369

Re: [CS:GO] Check if entity is hidden to begin with

velocity wrote:That worked thanks. I have some follow up questions. Is it possible to get the entities associated with a button (without having to press it).

Please, create new threads. Makes the searches more efficient if unrelated questions are indexed separately.

Go to advanced search