Search found 159 matches

by Predz
Mon Oct 16, 2023 10:08 am
Forum: General Discussion
Topic: Source 2, anybody?
Replies: 9
Views: 19099

Re: Source 2, anybody?

Take a look here if you want a breakdown of the awesome work the community is doing :) https://github.com/alliedmodders/hl2sdk/issues/132
by Predz
Mon Oct 16, 2023 10:06 am
Forum: General Discussion
Topic: Source 2, anybody?
Replies: 9
Views: 19099

Re: Source 2, anybody?

Haha would be nice, but Source.Python is separate to SourceMod. Source.Python uses a totally separated module to handle memhooks (does not currently support x64) and has no reliance on Metamod. I have been writing a few plugins based upon Metamod over the last couple of weeks but without a valid HL2...
by Predz
Mon Jun 19, 2023 9:51 pm
Forum: General Discussion
Topic: CS2: is this a wishful thinking or did they implement some gui?
Replies: 8
Views: 11642

Re: CS2: is this a wishful thinking or did they implement some gui?

Take a look here if you are interested: https://github.com/bruhmoment21/cs2-sdk

Please note this may be removed from the board and I am fully accepting if this be the case. Admins please do as you see fit with this link. :)
by Predz
Mon Jun 19, 2023 9:50 pm
Forum: General Discussion
Topic: CS2: is this a wishful thinking or did they implement some gui?
Replies: 8
Views: 11642

Re: CS2: is this a wishful thinking or did they implement some gui?

Tools are already out for the Source 2 engine and can be gathered from HL: Alyx, I already have tools for map creation, model creation, animation, video editing and items. I am quite sure the problem with CS2 modding at the moment is that there is no definitive SDK and iirc CS2 for the public is bou...
by Predz
Thu Jan 06, 2022 8:26 pm
Forum: Plugin Development Support
Topic: Changing View Model
Replies: 9
Views: 7735

Re: Changing View Model

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.
by Predz
Mon Apr 19, 2021 7:31 pm
Forum: Plugin Development Support
Topic: Delete Player Weapons On Death.
Replies: 7
Views: 4478

Re: Delete Player Weapons On Death.

Something along the lines of this would probably achieve it :) Ripped straight from my plugin so apologies that it's not optimized! @EntityPreHook(EntityCondition.is_player, 'on_take_damage') def _pre_damage_call_events(stack_data): take_damage_info = make_object(TakeDama...
by Predz
Thu Apr 08, 2021 12:44 pm
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 3905

Re: virtual functions and skip_hooks

Thanks for the clarification! Yeh I had understood this was most probably me causing an infinite loop during the attack/victim stuff :embarrassed: It seems that the reason for the crash is due to setting the `attacker` attribute of TakeDamageInfo; as adding it, instantly causes the server crash. Rem...
by Predz
Wed Apr 07, 2021 12:03 pm
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 3905

Re: virtual functions and skip_hooks

Additional code for the calling of the decorated functions. @Event('player_hurt') def _on_hurt_call_events(event_data): if event_data['userid'] == event_data['attacker'] or event_data['attacker'] == 0: return kwargs = event_data.variables.as_dict(&...
by Predz
Wed Apr 07, 2021 10:49 am
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 3905

virtual functions and skip_hooks

Hey all, Trying to get my head around a problem I have just solved... What is skip_hooks actually doing? My understanding is that it ignores all pre/post hooks and calls the function like normal... however running some code I am still ending up in a server crash when using skip_hooks. Rather than th...
by Predz
Thu Jul 19, 2018 12:58 pm
Forum: Plugin Development Support
Topic: How do I use engine_trace.enumerate_entities_in_box
Replies: 5
Views: 5795

Re: How do I use engine_trace.enumerate_entities_in_box

Finally back after some time at Uni, so will try to help :D I got the enumerate functions working but failed further down the line. You cannot call the virtual functions for the EntityEnumerator class which makes this function a bit unusable at the moment, unless I am missing something in the src di...
by Predz
Tue Aug 29, 2017 2:43 pm
Forum: General Discussion
Topic: NEED HELP FOR INSTALL WARCRAFT/ WCS FOR CS GO
Replies: 1
Views: 3364

Re: NEED HELP FOR INSTALL WARCRAFT/ WCS FOR CS GO

Hi, you will need SourcePython installed first. Just use the builds section on this forums bar above. You can then find my most recent release of Warcraft GO at this link: https://github.com/Predz/SP-Warcraft-Mod/releases Copy it all into your srcds directory, as it has all the folder structure setu...
by Predz
Fri Aug 25, 2017 8:34 am
Forum: Plugin Development Support
Topic: Calling virtual function CBaseTrigger::IsTouching?
Replies: 7
Views: 7019

Re: Calling virtual function CBaseTrigger::IsTouching?

I would normally use Asherkin's vtable dumper, however it is not functioning at the moment. Unsure why it isn't working tbh. I think Ayuto/L'Inc/Satoon have a way of dumping the vtables using python as well, but I don't have that code to hand.
by Predz
Fri Aug 25, 2017 8:29 am
Forum: Whatever
Topic: Half Life: Episode 3 plot revealed?
Replies: 2
Views: 11748

Half Life: Episode 3 plot revealed?

All this was posted on Marc Laidlaw's website earlier today by himself. It seems to be a release of the Half Life 3 plot line, considering he recently left the Valve team. All the characters in the plot are gender swapped however he seems to be making frequent jokes about it on Twitter . His website...
by Predz
Mon Jul 03, 2017 10:40 am
Forum: Plugin Development Support
Topic: create during-prehook
Replies: 7
Views: 6759

Re: create during-prehook

For reference https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/src/core/modules/memory/memory_function.h You could use .is_hooked instead of using a global after further reading, but that would require retrieving the Player instance all the time which is bad... Unless Ayuto/Satoon...
by Predz
Sun Jul 02, 2017 9:03 pm
Forum: Plugin Development Support
Topic: create during-prehook
Replies: 7
Views: 6759

Re: create during-prehook

All virtual functions can be hooked without needing to use the Pre/PostHook decorators. Just use the <vfunc>.add_hook method. Example below: from entities.hooks import HookType from events import Event from players.entity import Player g_hooked = False @Event('player_spawn') def _bla...
by Predz
Fri Jun 30, 2017 10:39 am
Forum: Plugin Development Support
Topic: Client Command ?
Replies: 3
Views: 4215

Re: Client Command ?

Hi, in SourcePython we use Python decorators to register commands to functions. from commands.client import ClientCommand from commands.say import SayCommand ## Registering a console command @ClientCommand(<command/list of commands>) def _registered_client_command_function(command, pinde...
by Predz
Sun Jun 18, 2017 10:15 am
Forum: Plugin Development Support
Topic: [CSGO] Ammo problem
Replies: 9
Views: 9070

Re: [CSGO] Ammo problem

Existenz you are now asking for something that even Valve has banned xD Valve will ban any server changing weapon skins because they do not want people having access to skins they haven't purchased. Basically they are money grabbing assholes :P TBH I am unsure whether they will have anything against...
by Predz
Sat Jun 17, 2017 11:25 am
Forum: Plugin Development Support
Topic: [CSGO] Ammo problem
Replies: 9
Views: 9070

Re: [CSGO] Ammo problem

Yeh I was having the same problem even when the Weapon.create classmethod to handle the item definition index was updated. So I had altered my weapon class in my pickupables plugin to work on <prop>.use rather than actually creating a weapon entity. You can see that here: https://github.com/Predz/SP...
by Predz
Fri Jun 16, 2017 8:42 am
Forum: Plugin Requests
Topic: [HL2:DM] Mapchooser Extended
Replies: 12
Views: 11152

Re: [HL2:DM] Mapchooser Extended

If you go back and read iPlayer's official release you will see that you need some custom packages. Have a read on this page to get the custom packages

viewtopic.php?f=7&t=1044
by Predz
Fri May 26, 2017 2:39 pm
Forum: General Discussion
Topic: [CSGO] Crash in run_command since update
Replies: 12
Views: 11637

Re: [CSGO] Crash in run_command since update

I will test all of them tonight after I finish work, then I will post a pull request. Unless anyone beats me to it that is what my plan is tonight :)

Go to advanced search