Search found 150 matches

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: 130

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: 407

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: 1069

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: 631

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: 1017

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: 1017

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: 705

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: 1619

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: 1619

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: 1987

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: 2100

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 :)
by Predz
Fri May 26, 2017 1:34 pm
Forum: General Discussion
Topic: [CSGO] Crash in run_command since update
Replies: 12
Views: 2100

Re: [CSGO] Crash in run_command since update

Not thanks to me, hehe.

Thanks to the sourcemod team for being so quick at updating their data files :P
by Predz
Tue May 16, 2017 4:11 pm
Forum: General Discussion
Topic: Spawned weapons do not function correctly.
Replies: 5
Views: 949

Re: Spawned weapons do not function correctly.

Just a blind guess, but in CS:GO you might have to set item_definition_index to make the weapons work correctly. Yep, indeed that fixes it! For some reason they use this index to handle weapon sounds, and recoil patterns. It is quite funny to see a AK47 with an AWPs recoil tho xD Here are all the d...
by Predz
Tue May 16, 2017 2:27 pm
Forum: General Discussion
Topic: Spawned weapons do not function correctly.
Replies: 5
Views: 949

Spawned weapons do not function correctly.

I have noticed in the recent update that spawning a weapon into the world will cause some crazy behaviour... All weapons sound like deagle shots, and they always have max ammo and no extended clips. They also are classed as knives according to the overlays :confused: This has confused me to every ex...
by Predz
Wed Apr 26, 2017 7:46 am
Forum: Plugin Development Support
Topic: Creating Player Hat
Replies: 4
Views: 835

Re: Creating Player Hat

1. I believe by default all props that use the override tag will always be solid but you can still try using the "enable/disable_collision" inputs available for prop entities. As I can see you have tried to use the spawnflags for non-solid and I guess that is not working. 2. Use the attach...
by Predz
Tue Apr 25, 2017 7:36 am
Forum: Plugin Development Support
Topic: Is current date between 2 dates
Replies: 9
Views: 1386

Re: Is current date between 2 dates

How about something like this? def is_between(first, second, between): if not isinstance(between, datetime.datetime): raise TypeError('Argument between must be of type <datetime.datetime>.') ## ORDER THE DATES timestamps = [first.timestamp(), second.timestamp&...
by Predz
Tue Apr 18, 2017 2:18 pm
Forum: Plugin Development Support
Topic: Create own listener
Replies: 5
Views: 857

Re: Create own listener

The __all__ attribute allows python to know what to define when trying to import from a module. Doing: from <module> import * Would import all things from the <module> but only define values which are named from inside the iterable. You can still do: from <module> import <object> The * is just a way...
by Predz
Mon Apr 10, 2017 10:40 pm
Forum: Custom Packages
Topic: MOTDPlayer v2
Replies: 5
Views: 1654

Re: MOTDPlayer v2

Does anybody know of a way to sensibly immitate uWSGI on a windows machine? If not looks like I am going to have to work with Ubuntu again :P
by Predz
Sat Mar 04, 2017 11:43 am
Forum: Plugin Development Support
Topic: Current Map
Replies: 2
Views: 528

Re: Current Map

Syntax: Select all

from engines.server import global_vars

global_vars.map_name
by Predz
Sun Dec 25, 2016 3:11 pm
Forum: General Discussion
Topic: Merry Xmas!
Replies: 5
Views: 1087

Re: Merry Xmas!

Happy Christmas!

Go to advanced search