Search found 200 matches

by Doldol
Tue Jan 18, 2022 7:08 pm
Forum: Plugin Development Support
Topic: Changing View Model
Replies: 9
Views: 7765

Re: Changing View Model

Predz wrote:Somehow missed looking at this for years, lol.

https://github.com/ThomasVieth/SP-Viewmodel-Changer

Dunno if this will still work but here was my approach from years ago.


uu cool ty! I'll take a look at it when I find the time
by Doldol
Thu Jan 06, 2022 11:51 am
Forum: Plugin Development Support
Topic: Changing View Model
Replies: 9
Views: 7765

Re: Changing View Model

Kami wrote:I think I tried to remake the same plugin as you did :D Thank you for the link I will try the code!

Did you end up figuring this out? I've been recently getting interested in doing something like this again
by Doldol
Fri Feb 26, 2021 1:29 pm
Forum: Plugin Development Support
Topic: Using engine server's get_player_info
Replies: 3
Views: 3352

Re: Using engine server's get_player_info

Thanks for the quick reply! I did find that for CS:S the offsets are wrong, I'm pretty sure either fakeplayer or ishltv got removed. I verified and customFiles has an offset of 112 (length is 4 instead of 16 too, I'm pretty sure it's 4*4 = 16) That should bring it to from engines.server import engin...
by Doldol
Fri Feb 26, 2021 12:44 am
Forum: Plugin Development Support
Topic: Using engine server's get_player_info
Replies: 3
Views: 3352

Using engine server's get_player_info

First off I think I can use get_player_info to get the player_info_s/player_info_t structure Does Source Python define or provide helpers for this structure anywhere? If not how do I go about creating this in my plugin? It's been a while I've messed with the Source Engine, but this piqued my interes...
by Doldol
Wed Nov 04, 2020 5:54 am
Forum: General Discussion
Topic: libffi6 on ubuntu 20.04
Replies: 4
Views: 10906

Re: libffi6 on ubuntu 20.04

Just ran into this problem myself, I think the smoothest way is to just install libffi6 in addition, as to not get unintended side effects. This 1 line should do the trick (adapted from https://stackoverflow.com/a/63329830) curl -OL http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2....
by Doldol
Mon May 06, 2019 5:20 pm
Forum: Plugin Releases
Topic: Map Decal Painter
Replies: 20
Views: 32451

Re: Map Decal Painter

example better? Yes, that seems correct. Is there a way to adapt your plugin? Say this was your old file: "Positions" { "suicide" { "pos1" "-528.822815 -959.968750 -415.264404" "pos2" "-447.458313 553.347229 -479.968750" "pos3" &...
by Doldol
Thu May 02, 2019 8:37 pm
Forum: Plugin Releases
Topic: Map Decal Painter
Replies: 20
Views: 32451

Re: Map Decal Painter

Okay I made a repo for it, since it's probably easier & updated it to the latest version I had.

I suspect the github version should work now, but make me aware if there are any issues.

Also pain, you're supposed to provide 1 vmt and 1 vtf per entry, not multiple pairs.
by Doldol
Thu May 02, 2019 8:09 pm
Forum: Plugin Releases
Topic: Map Decal Painter
Replies: 20
Views: 32451

Re: Map Decal Painter

I'm really busy right now outside of this project, I can try to look into it sometime when I'm free (earliest this weekend) but if someone wants to fix it up by all means go for it. :)

Edit: I just remembered I definitely have a more up-to-date version somewhere though, I'll search for it.
by Doldol
Thu Aug 16, 2018 4:04 am
Forum: Plugin Releases
Topic: [CSGO] Floating Damage Numbers
Replies: 22
Views: 64389

Re: [CSGO] Floating Damage Numbers

That actually looks really neat
by Doldol
Thu Aug 16, 2018 4:02 am
Forum: Plugin Development Support
Topic: box
Replies: 17
Views: 13086

Re: Bounding box

Nobody knows? Please tell if the issue is explained so it can be understood :/ Maybe you can accomplish what you want by parenting an entity to the player that has your desired dimensions/collision or maybe hook ontouch and push the grenade when it hits that entity or the player? (There are some ca...
by Doldol
Thu Jul 19, 2018 11:22 pm
Forum: Plugin Development Support
Topic: How do I use engine_trace.enumerate_entities_in_box
Replies: 5
Views: 5817

Re: How do I use engine_trace.enumerate_entities_in_box

Question, is engine_trace.enumerate_entities_in_box guaranteed to return only after the enumerator is finished?
by Doldol
Thu Jul 19, 2018 9:48 pm
Forum: Plugin Development Support
Topic: How do I use engine_trace.enumerate_entities_in_box
Replies: 5
Views: 5817

Re: How do I use engine_trace.enumerate_entities_in_box

Thanks got it to work Edit: have to return True in enum_entity from engines.trace import engine_trace from engines.trace import EntityEnumerator from commands.say import SayCommand from players.entity import Player from entities.entity import Entity from memory import make_object from entities impor...
by Doldol
Thu Jul 19, 2018 2:25 am
Forum: Plugin Development Support
Topic: How do I use engine_trace.enumerate_entities_in_box
Replies: 5
Views: 5817

How do I use engine_trace.enumerate_entities_in_box

How do I use engine_trace.enumerate_entities_in_box?
by Doldol
Wed Jun 27, 2018 9:45 pm
Forum: Plugin Development Support
Topic: Reliable player disconnect check
Replies: 1
Views: 3038

Re: Reliable player disconnect check

I'm going to try a hook on CBaseClient::Clear, it seems like that will work for my purposes
by Doldol
Tue Jun 26, 2018 6:10 pm
Forum: Plugin Development Support
Topic: Reliable player disconnect check
Replies: 1
Views: 3038

Reliable player disconnect check

I'm trying to find some way to reliably listen for a player disconnecting from the server, and get either their SteamID or (base)client pointer. Every single way I've found so far has at least one issue, I'll list the ones I remember: OnClientDisconnect listener: Fires when the client deactivates (o...
by Doldol
Sat May 19, 2018 5:26 am
Forum: Plugin Development Support
Topic: Some help with CustomType
Replies: 3
Views: 4554

Re: Some help with CustomType

Yes, that's the proper way. For m_iMapHasVIPSafetyZone you can also use manager.instance_attribute. Edit: The calling convenient is wrong. It's a THISCALL. Right now it will only work on Linux, because THISCALL and CDECL are the same on Linux. Okay thanks! It's only meant to work on linux anyway, t...
by Doldol
Fri May 18, 2018 11:43 pm
Forum: Plugin Development Support
Topic: Some help with CustomType
Replies: 3
Views: 4554

Re: Some help with CustomType

class CCSGameRules(CustomType, metaclass=manager): _binary = "server" # 5 5 CCSGameRules::LevelInitPostEntity(void) LevelInitPostEntity = manager.virtual_function( 5 if PLATFORM == 'windows' else 5, [], DataType.VOID ) # void CCSGameRules::RestartRound(...
by Doldol
Fri May 18, 2018 11:08 pm
Forum: Plugin Development Support
Topic: Some help with CustomType
Replies: 3
Views: 4554

Some help with CustomType

I have: if PLATFORM == 'windows': raise NotImplementedError("UNIX Only") class CCSGameRules(CustomType, metaclass=manager): # 5 5 void CCSGameRules::LevelInitPostEntity(void) LevelInitPostEntity = manager.virtual_function( 5 if PLATFORM == 'windows&#...
by Doldol
Mon Mar 26, 2018 11:36 am
Forum: General Discussion
Topic: SP Threads?
Replies: 8
Views: 7149

Re: SP Threads?

You never had to do that when using GameThread as that was the whole purpose of that class. However, threading.Thread is now working fine, because SP always has a global tick listener registered: https://github.com/Source-Python-Dev-Team/Source.Python/blob/3391d929d8cba00bf3bfd53d84989ebd421b3524/a...
by Doldol
Sun Mar 25, 2018 10:51 am
Forum: General Discussion
Topic: SP Threads?
Replies: 8
Views: 7149

Re: SP Threads?

In the past it was necessarry to use GameThread instead of threading.Thread as we had to implement some fixes to make threads work correctly in dedicated servers. Today, this isn't required anymore, but GameThread still has a nice feature. It will print a warning if your plugin is unloaded while yo...

Go to advanced search