Search found 124 matches

by your-name-here
Tue Feb 05, 2013 1:19 pm
Forum: News & Announcements
Topic: An update
Replies: 6
Views: 9175

An update

Hi guys, It's been a long time since I've posted. Things are starting to let up in my personal life giving me a bit of time and motivation to continue work on SP. Recently, after taking a look at the changes in CSGO, I realized that integrating these might not be such a trivial task. After reviewing...
by your-name-here
Mon Nov 19, 2012 9:33 pm
Forum: News & Announcements
Topic: Site issues..
Replies: 5
Views: 7961

Site issues..

First we'd like to apologize about the site being down. It was very unexpected. Basically, Source Python was hosted on a dedicated server that was rented by me and a friend of mine. Unfortunately, my friend forgot to pay the bill and the server was removed and wiped. We lost the entire forums and al...
by your-name-here
Mon Sep 03, 2012 11:39 pm
Forum: Whatever
Topic: Globalban Support ?
Replies: 3
Views: 5171

As Omega said, this has nothing to do with a module submission so I've moved it.
by your-name-here
Mon Sep 03, 2012 11:34 pm
Forum: Plugin Development Support
Topic: Remove Notify Flag from sv_cheats
Replies: 2
Views: 4003

You should be able to use the ICvar interface and the ConVar class to do what you want: # Imports from Source import Cvar # In globals CvarEngine = Cvar.GetCvar() # ... later in your code sv_cheats = CvarEngine.FindVar("sv_cheats") sv_cheats.RemoveFlags(Cvar.FCVAR_NOTIF...
by your-name-here
Sun Sep 02, 2012 10:33 pm
Forum: News & Announcements
Topic: Source Python Alpha 1.0.0c
Replies: 5
Views: 7970

Woody wrote:Sweet! EasyPlayer class looks nice!

Thanks for all your hard work! Glad to see this progressing! :)


Thank you for the support :D
by your-name-here
Sun Sep 02, 2012 8:31 pm
Forum: General Discussion
Topic: SP doesn't include "time" Python module?
Replies: 5
Views: 5438

This issue is fixed. We weren't including the lib-dynload folder in the path which had cpython33-time.so.
by your-name-here
Sun Sep 02, 2012 8:21 pm
Forum: News & Announcements
Topic: Source Python Alpha 1.0.0c
Replies: 5
Views: 7970

Source Python Alpha 1.0.0c

A new Source.Python alpha build has been posted. You can grab the build here . Major Changes: ⋅ Fixed a major issue where we weren't adding _engines/lib-dynload to the Python path. This was causing scripts that imported the time module to break. ⋅ sp_load and sp_unload are no lon...
by your-name-here
Sun Sep 02, 2012 7:06 pm
Forum: Plugin Releases
Topic: Respawn Wave
Replies: 3
Views: 6189

My name is your-name-here and I support this message.
by your-name-here
Fri Aug 31, 2012 12:24 am
Forum: Whatever
Topic: Obama is a redditor?
Replies: 4
Views: 6022

I really don't care what political party you belong to... I give the man props for doing a AMA on reddit. http://www.reddit.com/user/PresidentObama Note: Absolutely no political opinions in this thread! I posted a link because its interesting. dude where've you been, he did an IAmA that crashed red...
by your-name-here
Thu Aug 30, 2012 11:42 pm
Forum: General Discussion
Topic: entity_edict.cpp question [How to respawn a player]
Replies: 12
Views: 11882

I just looked at entity_edict.cpp ( hg/src/core/modules/entity/entity_edict.cpp ) and there are these lines at the very end:CLASS_METHOD_TYPEDEF(DispatchSpawn, &DispatchSpawn, "Dispatches a message to spawn the entity." ) Can we use that one to respawn a player? Something like...
by your-name-here
Thu Aug 30, 2012 9:17 pm
Forum: Plugin Development Support
Topic: Retreiving 'CBasePlayer.m_iFOV' ?
Replies: 21
Views: 19415

Looks great, but just one question. Why don't you merge all (or most, atleast int, float and long) into one method, instead of multiple same methods with just different type? Since C++ does support function overloading, and Python doesn't even have to know anything about it. I flip the question ont...
by your-name-here
Thu Aug 30, 2012 1:40 am
Forum: API Design
Topic: Extended event variables - for player objects and indeces
Replies: 11
Views: 12536

satoon101 wrote:I have no issue with a GetIndexOfUserid being implemented. I do have a huge issue with creating Extended Event variables.

Satoon


I second this, I'm fine with a GetIndexOfUserid.
by your-name-here
Thu Aug 30, 2012 1:26 am
Forum: API Design
Topic: Extended event variables - for player objects and indeces
Replies: 11
Views: 12536

If you are concerned about speed gains with 1 extra call, you have bigger problems with your addon. People have to understand that Source Python doesn't add on extra cruft to Python -> C++ calls.
by your-name-here
Wed Aug 29, 2012 11:00 pm
Forum: API Design
Topic: Extended event variables - for player objects and indeces
Replies: 11
Views: 12536

Well, I guess we can write a GetEdictOfUserid function which would solve this issue. It's less work than doing everything else you suggested Omega :P, and would solve the issue completely.
by your-name-here
Wed Aug 29, 2012 10:10 pm
Forum: Plugin Development Support
Topic: Basic script help
Replies: 22
Views: 19776

[python] userid = GameEvent.GetInt('userid') player = Player.EdictOfUserid(userid) index = Engine.IndexOfEdict(player)[/python]This part really stresses me, if we're actually never going to use userid or player, why not just have a single function GetIndex('userid')? Even if it was stupid and unlog...
by your-name-here
Wed Aug 29, 2012 7:15 pm
Forum: API Design
Topic: How about es.fire/es.give ?
Replies: 14
Views: 15550

I am almost certain you can remove the cheat flags from ent_fire via the concommand class. Someone should try it and post back (busy with stuff currently). I think we have FindCommand for ICVar (not sure).
by your-name-here
Tue Aug 28, 2012 2:59 am
Forum: Whatever
Topic: Forum: awards..
Replies: 4
Views: 5261

BackRaw wrote:Hey,

I just got the "award" I killed most discussions!. Is this a bad or good thing? haha


What do you think :D
by your-name-here
Sun Aug 26, 2012 9:17 pm
Forum: Plugin Releases
Topic: Spawnprotection
Replies: 18
Views: 17570

+1! The first useful script!
by your-name-here
Sun Aug 26, 2012 5:35 pm
Forum: News & Announcements
Topic: Source Python Alpha 1.0.0b
Replies: 1
Views: 4221

Source Python Alpha 1.0.0b

A new Source.Python alpha build has been posted. You can grab the build here . Changes ⋅ Removed debugging printfs. ⋅ Fixed case issue when building for Linux on GCC 4.1.2. ⋅ Exposed Quaternion, RadianEuler, and QAngle. ⋅ Added __getitem__ and __setitem__ impl...
by your-name-here
Sun Aug 26, 2012 4:55 pm
Forum: Plugin Development Support
Topic: Retreiving 'CBasePlayer.m_iFOV' ?
Replies: 21
Views: 19415

Omega_K2 wrote:Awesome :D

I think that is one of the features I've been desperatly waiting for :P


I am going to release a build with this very shortly.

Go to advanced search