Search found 17 matches

by 12jdlovins
Thu May 03, 2018 3:49 pm
Forum: Plugin Development Support
Topic: Fading TempEntity
Replies: 6
Views: 4459

Re: Fading TempEntity

Would you be able to post how you determined the vector they were aiming at?

edit: nevermind found it right after posting http://wiki.sourcepython.com/developing ... view_angle
by 12jdlovins
Thu May 03, 2018 3:03 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 4087

Re: PagedMenu append but do not increment number

Well, then you just need to add a single line: class PagedMenuHdr(PagedRadioMenu): def _format_header(self, player_index, page, slots): buffer = super()._format_header(player_index, page, slots) if page.index == 0: buffer += 'Some info\nMoreInfo\n' return buf...
by 12jdlovins
Thu May 03, 2018 2:31 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 4087

Re: PagedMenu append but do not increment number

You need to implement that on your own by subclassing PagedRadioMenu. This is how you would do that: from menus.radio import PagedRadioMenu from menus.radio import PagedRadioOption as PagedOption from commands.typed import TypedSayCommand class PagedMenuHdr(PagedRadioMenu): def _format_head...
by 12jdlovins
Thu May 03, 2018 1:21 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 4087

Re: PagedMenu append but do not increment number

I know I saw that but it's not what I need. I need to display information between the separators without messing up the ordering. Title ----------------- Some info More info 1. Option 1 2. Option 2 ------------------ Is what I'm ideally looking to do. edit: Looking at how the menus are coded this is...
by 12jdlovins
Wed May 02, 2018 11:15 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 4087

PagedMenu append but do not increment number

Hey is it possible to append text to a menu without incrementing the number required to press it? I want to have some text that is dynamic above the options but doing menu.append() causes it to increment the rest of the options. Setting selectable to false doesn't do that sadly.
by 12jdlovins
Tue May 01, 2018 5:03 pm
Forum: Plugin Development Support
Topic: How to organize code
Replies: 2
Views: 2367

Re: How to organize code

Yeah I could do that i suppose, seems like I'm going about it wrong if i just throw an import statement at it for no other reason then to load it into memory. I'll have to mess around with stuff i guess.
by 12jdlovins
Tue May 01, 2018 3:30 am
Forum: Plugin Development Support
Topic: How to organize code
Replies: 2
Views: 2367

How to organize code

Not sure how to really make that title any better... This isn't really any specific programming questions but more so how to really organize it and format it. I have a zones plugin i want to make so i start with zones.py and such but say I wanted to add a menu for zoning capabilities but don't want ...
by 12jdlovins
Sun Apr 29, 2018 12:27 am
Forum: Plugin Development Support
Topic: menu build callback being called over and over
Replies: 2
Views: 2549

Re: menu build callback being called over and over

Thanks for the quick response!

That would make sense why the menu.clear() is there. It didn't click in my head why that was actually there until you said you have to redraw.

Thanks for the examples and info.
by 12jdlovins
Sat Apr 28, 2018 11:59 pm
Forum: Plugin Development Support
Topic: menu build callback being called over and over
Replies: 2
Views: 2549

menu build callback being called over and over

I must be missing something or menus package is bugged maybe? def build_menu(menu, player_index): menu.append(PagedOption("test")) print("added to menu") main_menu = PagedMenu( build_callback=build_menu ) @SayCommand("!testmenu&quo...
by 12jdlovins
Tue Apr 24, 2018 4:30 am
Forum: Plugin Development Support
Topic: SourceTV Listener
Replies: 22
Views: 14432

Re: SourceTV Listener

decompile wrote:You dont need it, but its the official way to also hook auto-created demos, or user generated ones.



Yeah but dealing with offsets that can change at any update is a pain in the ass... i think id rather just make a wrapper around tv_ commands
by 12jdlovins
Mon Apr 23, 2018 11:44 pm
Forum: Plugin Development Support
Topic: SourceTV Listener
Replies: 22
Views: 14432

Re: SourceTV Listener

I'm actually really interested in making a sourceTV recordinger & uploader however is using the pointers and such needed? Could i just start recording on map start and upload on map end basically with like tv_record mapname-date and such?
by 12jdlovins
Mon Apr 23, 2018 6:08 am
Forum: Plugin Development Support
Topic: SourceTV Listener
Replies: 22
Views: 14432

Re: SourceTV Listener

decompile wrote:Can someone maybe check the offsets/signatures for CS:S Windows/Linux and CS:GO Windows/Linux?

Additionally how are you doing that? Is there any program for that?


https://asherkin.github.io/vtable/

this might help? I'm unsure though, that stuff is beyond me at the moment.
by 12jdlovins
Sat Apr 21, 2018 3:36 pm
Forum: Plugin Development Support
Topic: EntityPostHook Condition not working
Replies: 3
Views: 3549

Re: EntityPostHook Condition not working

This is expected behaviour. The entity condition only determines the entity that is used to hook the function. Now, look at the virtual function table of CTriggerMultiple: Inheritance Tree: CTriggerMultiple CBaseTrigger CBaseToggle CBaseEntity IServerEntity IServerUnknown IHandleEntity VTable for C...
by 12jdlovins
Sat Apr 21, 2018 3:00 am
Forum: Plugin Development Support
Topic: EntityPostHook Condition not working
Replies: 3
Views: 3549

EntityPostHook Condition not working

So i'm trying to create an entity and hook them, creating them is working so-so i think.. just need to figure out coordinates however for the PostHook it's hooking things that arent met in the condition. @EntityPostHook(EntityCondition.equals_entity_classname("trigger_multiple")...
by 12jdlovins
Mon Apr 16, 2018 8:49 pm
Forum: Plugin Development Support
Topic: Cross plugin events
Replies: 10
Views: 6406

Re: Cross plugin events

The wiki page linked by Zeus is describing it pretty well. If you have a specific question, feel free to ask. So for instance using the wikis example: # Create the event event_instance = My_New_Event() # Set the variable values event_instance.userid = 2 event_instance.pos_x = 1.111 event_instance.p...
by 12jdlovins
Mon Apr 16, 2018 8:17 pm
Forum: Plugin Development Support
Topic: Cross plugin events
Replies: 10
Views: 6406

Re: Cross plugin events

There is this: http://wiki.sourcepython.com/developing/module_tutorials/events.html?highlight=events I would only use that if something outside of Source.Python (e. g. Sourcemod plugins) need to listen to those events. If you want to share notifications across Source.Python plugins or libraries, I ...
by 12jdlovins
Mon Apr 16, 2018 5:14 am
Forum: Plugin Development Support
Topic: Cross plugin events
Replies: 10
Views: 6406

Cross plugin events

Hey there,

Really cool project and alternative to source pawn :)

I was wondering if there is an equivalent to sourcepawns forwards / natives? Can i make a custom event and hook onto it in a different plugin and such?

Thanks!

Go to advanced search