Search found 159 matches
- Mon Oct 16, 2023 10:08 am
- Forum: General Discussion
- Topic: Source 2, anybody?
- Replies: 11
- Views: 156283
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
- Mon Oct 16, 2023 10:06 am
- Forum: General Discussion
- Topic: Source 2, anybody?
- Replies: 11
- Views: 156283
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...
- 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: 101525
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. :)
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. :)
- 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: 101525
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...
- Thu Jan 06, 2022 8:26 pm
- Forum: Plugin Development Support
- Topic: Changing View Model
- Replies: 9
- Views: 23160
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.
https://github.com/ThomasVieth/SP-Viewmodel-Changer
Dunno if this will still work but here was my approach from years ago.
- Mon Apr 19, 2021 7:31 pm
- Forum: Plugin Development Support
- Topic: Delete Player Weapons On Death.
- Replies: 7
- Views: 15642
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...
- Thu Apr 08, 2021 12:44 pm
- Forum: Plugin Development Support
- Topic: virtual functions and skip_hooks
- Replies: 5
- Views: 13720
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...
- Wed Apr 07, 2021 12:03 pm
- Forum: Plugin Development Support
- Topic: virtual functions and skip_hooks
- Replies: 5
- Views: 13720
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(&...
- Wed Apr 07, 2021 10:49 am
- Forum: Plugin Development Support
- Topic: virtual functions and skip_hooks
- Replies: 5
- Views: 13720
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...
- 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: 17818
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...
- Tue Aug 29, 2017 2:43 pm
- Forum: General Discussion
- Topic: NEED HELP FOR INSTALL WARCRAFT/ WCS FOR CS GO
- Replies: 1
- Views: 6746
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...
- Fri Aug 25, 2017 8:34 am
- Forum: Plugin Development Support
- Topic: Calling virtual function CBaseTrigger::IsTouching?
- Replies: 7
- Views: 15964
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.
- Fri Aug 25, 2017 8:29 am
- Forum: Whatever
- Topic: Half Life: Episode 3 plot revealed?
- Replies: 2
- Views: 16937
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...
- Mon Jul 03, 2017 10:40 am
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 16205
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...
- Sun Jul 02, 2017 9:03 pm
- Forum: Plugin Development Support
- Topic: create during-prehook
- Replies: 7
- Views: 16205
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...
- Fri Jun 30, 2017 10:39 am
- Forum: Plugin Development Support
- Topic: Client Command ?
- Replies: 3
- Views: 8629
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...
- Sun Jun 18, 2017 10:15 am
- Forum: Plugin Development Support
- Topic: [CSGO] Ammo problem
- Replies: 9
- Views: 20794
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...
- Sat Jun 17, 2017 11:25 am
- Forum: Plugin Development Support
- Topic: [CSGO] Ammo problem
- Replies: 9
- Views: 20794
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...
- Fri Jun 16, 2017 8:42 am
- Forum: Plugin Requests
- Topic: [HL2:DM] Mapchooser Extended
- Replies: 12
- Views: 23808
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
viewtopic.php?f=7&t=1044
- Fri May 26, 2017 2:39 pm
- Forum: General Discussion
- Topic: [CSGO] Crash in run_command since update
- Replies: 12
- Views: 25117
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 :)