Search found 1060 matches

by L'In20Cible
Sun Jul 05, 2020 9:07 am
Forum: Plugin Development Support
Topic: How to make Player model invisible?
Replies: 7
Views: 276

Re: How to make Player model invisible?

Syntax: Select all

from entities.constants import EntityEffects

player.effects |= EntityEffects.NODRAW
by L'In20Cible
Wed Jul 01, 2020 9:25 pm
Forum: Plugin Development Support
Topic: entity condition hook for multiple names ?
Replies: 1
Views: 129

Re: entity condition hook for multiple names ?

Intended behaviour. Once the condition evaluated to True once, the hook is registered on that entity and the searches are done. If you want to have multiple hooks for the same callback, then you have to decorate it multiple times. For example: https://github.com/Source-Python-Dev-Team/Source.Python/...
by L'In20Cible
Mon Jun 29, 2020 3:02 am
Forum: General Discussion
Topic: [TF2] Extending the Player class
Replies: 11
Views: 278

Re: [TF2] Extending the Player class

May have some outdated information, but that guide should be helpful: viewtopic.php?f=8&t=972
by L'In20Cible
Mon Jun 29, 2020 2:57 am
Forum: General Discussion
Topic: [TF2] Extending the Player class
Replies: 11
Views: 278

Re: [TF2] Extending the Player class

You don't have to add m_hActiveWeapon to CTFPlayer , as it is already inherited by CBaseCombatCharacter as active_weapon_handle : https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/data/source-python/entities/CBaseCombatCharacter.ini#L16 (Although, technically f...
by L'In20Cible
Mon Jun 29, 2020 1:43 am
Forum: General Discussion
Topic: [TF2] Extending the Player class
Replies: 11
Views: 278

Re: [TF2] Extending the Player class

So im looking to get uber gun percentage as well So I would need to be able to get the active weapon class that the player has. I see this being under this: CTFPlayer (type DT_TFPlayer) Table: baseclass (offset 0) (type DT_BasePlayer) Table: baseclass (offset 0) (type DT_BaseCombatCharacter) Table:...
by L'In20Cible
Mon Jun 29, 2020 12:01 am
Forum: General Discussion
Topic: [TF2] Extending the Player class
Replies: 11
Views: 278

Re: [TF2] Extending the Player class

So I'm not seeing any data with a class name to id mapping; i assume i should add it? Since it's very specfic to TF2, im not sure where to put it. Bascially would want this: [classes] scout = 1 sniper = 2 soldier = 3 demoman = 4 medic = 5 heavy = 6 pyro = 7 spy = 8 engineer = 9 I'd say this would f...
by L'In20Cible
Fri Jun 26, 2020 9:36 pm
Forum: Plugin Development Support
Topic: [TF2] Hooking Server Log
Replies: 5
Views: 225

Re: [TF2] Hooking Server Log

Zeus wrote:Is there a place I can find all of these available virtual functions to hook? Might be useful to put that up as a reference on the wiki

You can find them all by searching for FUNCTION_INFO on the repo.
by L'In20Cible
Sat Jun 20, 2020 12:26 pm
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1162

Re: [CSGO] Curving Flash

Seeing as I'm beyond rusty with C++, I could add it to the Player class. Although I think it'd be better if someone added it to PlayerMixin instead. It would likely be implemented the same as Entity.parent , where EntityMixin.parent_inthandle is implemented on the C++ side and Entity.parent in Pyth...
by L'In20Cible
Fri Jun 19, 2020 6:30 am
Forum: API Design
Topic: Repeats and Delays based on ticks
Replies: 15
Views: 3788

Re: Repeats and Delays based on ticks

InvisibleSoldiers wrote:

Syntax: Select all

if (d.exec_time <= global_vars->current_time) {


That won't really work, since that time can be reset at any time (mp_restartgame, new match, etc.) which will cause all your pending delays to fire instantly.
by L'In20Cible
Fri Jun 19, 2020 6:26 am
Forum: Plugin Development Support
Topic: Coding a "Smokebomb"-like ability
Replies: 12
Views: 905

Re: Coding a "Smokebomb"-like ability

I just wish we had that C++ SetTransmit implementation, for both speed and ease of use :tongue:. No progress have been made, at least on my side I haven't looked deeper into that than brain storming about it. Been rather busy with other stuff lately so not sure when I personally will get a chance t...
by L'In20Cible
Fri Jun 19, 2020 6:23 am
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1162

Re: [CSGO] Curving Flash

That is indeed a cool idea, well done! :smile: That said, you know me... here are some points: ⋅  ../curving_flash.py#L27 : That method isn't static, so this should rather be: player.view_angle.get_angle_vectors(None, right, None) ⋅  ../core/players.py#L54 : Since your Pl...
by L'In20Cible
Fri Jun 12, 2020 10:51 am
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 64297

Re: Free games!!

by L'In20Cible
Fri Jun 12, 2020 10:50 am
Forum: Plugin Development Support
Topic: Coding a "Smokebomb"-like ability
Replies: 12
Views: 905

Re: Coding a "Smokebomb"-like ability

VinciT wrote:
JustGR wrote:EDIT: Alright, tested it out in a couple of matches today. No issues. Only confused about the smoke duration. Is there really no way to adjust it (make it faster than 15 seconds)?
Removing the particle system before that time is up has no effect.

Tried to .stop() it first?
by L'In20Cible
Thu Jun 11, 2020 12:17 pm
Forum: General Discussion
Topic: [Q] More... MORE!
Replies: 10
Views: 1456

Re: [Q] More... MORE!

just some people need a quick answer and wait a few hours, days on the forum... Maybe good. Live chat support is generally a blessing in disguise. While it is awesome for the one asking support to get their problem resolved on the spot, it is usually a waste of time for the ones providing it as the...
by L'In20Cible
Thu Jun 11, 2020 12:08 pm
Forum: Plugin Development Support
Topic: Coding a "Smokebomb"-like ability
Replies: 12
Views: 905

Re: Coding a "Smokebomb"-like ability

OK, I got to test out the first script you gave me. Unfortunately, it ended up crashing the server every time, with a Segmentation fault. I can only assume something is going wrong with the Entity created, and am not entirely sure how I can go about debugging this. Once I can spawn the smokebomb co...
by L'In20Cible
Thu Jun 11, 2020 11:59 am
Forum: Plugin Requests
Topic: [HL2:DM] admin joinsound
Replies: 24
Views: 12817

Re: [HL2:DM] admin joinsound

Painkiller wrote:It worked but after I adjusted the admins.ini.
Now comes a UTF8 error but I checked it with notepad++ it is UTF8

The issue is definitely your file. From that traceback, I assume you saved it with a BOM.
by L'In20Cible
Thu Jun 11, 2020 11:56 am
Forum: API Design
Topic: Export ITempEntsSystem
Replies: 2
Views: 524

Re: Export ITempEntsSystem

I'm not fully sure anymore why we replaced it with the new system, but IIRC ITempEntsSystem doesn't set all effect properties. Yes, some wrappers are not accepting all parameters (such as models, that are hard-coded and globalized in the engine) but also that interface, its prototypes along with th...
by L'In20Cible
Wed Jun 03, 2020 1:54 am
Forum: Whatever
Topic: [P] Something scary
Replies: 6
Views: 414

Re: [P] Something scary

Forcing your client to think you are locally playing with a different steamid is one thing, while forcing steam master or any dedicated server to think so is another. If you found a way to do the later, I would recommend you simply report it to VALVe.
by L'In20Cible
Wed Jun 03, 2020 1:51 am
Forum: General Discussion
Topic: Creating "medkit" drops on player death
Replies: 3
Views: 301

Re: Creating "medkit" drops on player death

1. I've never messed with PreHooks or metaclasses before (though I understand the use for the latter). How is it used here? Most of them has since been added to Entity so you shouldn't have to use those directly. You can find some example by searching for start_touch . 2. There are a couple of diff...
by L'In20Cible
Wed Jun 03, 2020 1:44 am
Forum: Plugin Requests
Topic: [HL2:DM] admin joinsound
Replies: 24
Views: 12817

Re: [HL2:DM] admin joinsound

AttributeError: 'Section' object has no attribute 'send' This happens because SayText2 is a subclass of dict , so ConfigObj parses it as a Section . Passing directly through dict.__setitem__ should do the trick. Still the same problem no chat message. After the mapchange the sound comes again( firs...

Go to advanced search