GameEvent naming convention

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

GameEvent naming convention

Postby BackRaw » Wed Feb 10, 2016 10:00 am

Hi,

I know you can name the GameEvent object whatever you want in a plugin, however, I'd like to go with what the SP developers go.
The reason I'm asking is because I saw, in the weapon_manager wiki page, that it's named event instead of game_event. Is this the "new way" or just the authors preference?

Thanks :D
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Feb 10, 2016 10:13 am

My preference was "event", but we since we wanted consistency we decided to use "game_event".

Can you give me the link to the "event" occurence? I will update it.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Wed Feb 10, 2016 10:18 am

http://wiki.sourcepython.com/pages/effects

Sorry, it was in effects. Got my memory wrong there, sorry :D
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Wed Feb 10, 2016 10:18 am

User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Feb 10, 2016 10:29 am

Yeah, that's the old wiki, which we don't update anymore.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Wed Feb 10, 2016 11:30 am

Ok I'm confused lol. What's the new one?
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Feb 10, 2016 12:02 pm

User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Fri Feb 12, 2016 5:33 pm

Thanks. Not sure why it didn't do it before.
My Github repositories:

Source.Python: https://github.com/backraw

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 15 guests