Search found 1776 matches

by satoon101
Tue Nov 27, 2012 3:38 pm
Forum: News & Announcements
Topic: Messaging system changes
Replies: 19
Views: 17778

Messaging system changes

Just a heads up for future changes to the messaging system. We are no longer simply using functions for messages. They are now utilizing class objects: from events import Event from messages import SayText2 from players.helpers import index_from_userid # Create a message to send to non-living terror...
by satoon101
Mon Nov 19, 2012 10:56 pm
Forum: News & Announcements
Topic: Site issues..
Replies: 5
Views: 7955

I thought the database was just being moved :P This was supposed to happen anyway, but unfortunately before we got around to moving the site, things went south, so we lost quite a bit. Glad to hear that you are back on the project! Welcome back! Indeed. We are definitely glad to have you back, ynh!...
by satoon101
Mon Sep 03, 2012 9:22 pm
Forum: API Design
Topic: Information lib with constants in it
Replies: 7
Views: 8682

It can be used by anyone for any purpose right now. I only said "currently" because we could end up using it for other functionality later in development.

Satoon
by satoon101
Mon Sep 03, 2012 2:14 pm
Forum: API Design
Topic: Information lib with constants in it
Replies: 7
Views: 8682

Currently that file is only used for PlayerIter. It uses the game's .ini file to add the teams to the filter manager.

Satoon
by satoon101
Mon Sep 03, 2012 2:11 pm
Forum: Plugin Releases
Topic: Respawn Wave
Replies: 3
Views: 6187

Awesome job, Ash. I will have to test this out when I get the chance.

Satoon
by satoon101
Mon Sep 03, 2012 2:08 pm
Forum: General Discussion
Topic: Find out current map
Replies: 6
Views: 6584

We have discussed including events and variables with SP. A map start event will probably be getting added at some point. If host_map works, we will not have a need to include a current map variable. If not, that is a possible variable that could be added.

Satoon
by satoon101
Sun Sep 02, 2012 2:07 pm
Forum: Plugin Development Support
Topic: Importing script from addons\source-python\<script> folder
Replies: 2
Views: 3833

Well, you say you are loading "test", but the code block says "Test". Which one is it, so that we can help further? Just as a note, "test" is a built-in module in Python3, so you will be unable to use a script at ../addons/source-python/test/test.py . We "could" eventually remove this module, but th...
by satoon101
Sun Sep 02, 2012 12:59 pm
Forum: Plugin Development Support
Topic: Retreiving 'CBasePlayer.m_iFOV' ?
Replies: 21
Views: 19405

ES: (es.getplayerprop(a['id'], 'CBasePlayer.m_fFlags') & 1) == 0 What would be the equilivent ? SP??: entity = Player.EdictOfPlayer(<PLAYER>) onground = ((entity.GetPropLong('CBasePlayer.m_fFlags') & 1) == 0) i dont see...
by satoon101
Sun Sep 02, 2012 4:14 am
Forum: Plugin Development Support
Topic: How to use SetPropVector?
Replies: 4
Views: 5026

Sorry, meant to post an example, but forgot: from Source import Shared vector = Shared.Vector(22.33, 88.77, 99.11) That is a vector instance. You can then use: vector.x = 44.22 to change the x value of the vector. Do note that "currently" it is in the "Shared" module, so ...
by satoon101
Sun Sep 02, 2012 1:07 am
Forum: General Discussion
Topic: entity_edict.cpp question [How to respawn a player]
Replies: 12
Views: 11879

Yup, the following works on the newest unreleased version: from events import Event from players import EasyPlayer @Event def player_say(GameEvent): userid = GameEvent.GetInt('userid') player = EasyPlayer(userid) player.SetPropInt('CCSPlayer.m_iPlayerState'...
by satoon101
Sun Sep 02, 2012 12:04 am
Forum: Plugin Development Support
Topic: How to use SetPropVector?
Replies: 4
Views: 5026

Yes, you cannot pass a vector string, you need to pass an actual vector.

Satoon
by satoon101
Fri Aug 31, 2012 12:32 am
Forum: Plugin Development Support
Topic: Basic script help
Replies: 22
Views: 19764

Thanks for the clarification. Since you are also the one working on most of the documentation so far, can we expect to maybe see a reference page with a listing for where and when player is used vs index? As I wrote earlier in the thread, pretty much "nothing" actually "uses" a player's userid, so ...
by satoon101
Fri Aug 31, 2012 12:27 am
Forum: Plugin Development Support
Topic: sqlite3 connect (PATH)
Replies: 4
Views: 5579

Or from paths import ADDON_PATH conn = sqlite3.connect(ADDON_PATH + "/ADDON_NAME/kiwi.db") As I wrote in another thread, since ADDON_PATH is a "path" instance, you might as well use it as such: from paths import ADDON_PATH conn = sqlite3.conntect(ADDON_PATH.joinpath&...
by satoon101
Fri Aug 31, 2012 12:24 am
Forum: API Design
Topic: Extended event variables - for player objects and indeces
Replies: 11
Views: 12527

And GetIndexOfUserid would do the trick more than well enough, returning all 3, player, userid AND index would be just waste of cpu imo, since you would rarely need all 3, or even 2 of them. Indeed, which is why this will not be considered. A lot of extra work for very little payoff, when one simpl...
by satoon101
Fri Aug 31, 2012 12:21 am
Forum: General Discussion
Topic: paths.py suggestion
Replies: 5
Views: 6501

I prefer .parent to .dirname(), but they do the same thing. And, you can also, since ADDON_PATH is a path instance itself, just use: from paths import ADDON_PATH myaddon_path = ADDON_PATH.joinpath('myaddon_name') And in reference to the original question, I am not sure if you noticed...
by satoon101
Thu Aug 30, 2012 2:40 am
Forum: API Design
Topic: How about es.fire/es.give ?
Replies: 14
Views: 15537

I would imagine that would work, but that creates more issues than it solves. I agree that skirting sv_cheats is something that should be done almost never, and I especially do not think anything of that sort belongs "in" the plugin itself. If a script does it, that is fine, but we want to avoid suc...
by satoon101
Thu Aug 30, 2012 2:27 am
Forum: Plugin Development Support
Topic: Basic script help
Replies: 22
Views: 19764

userid = GameEvent.GetInt('userid') player = Player.EdictOfUserid(userid) index = Engine.IndexOfEdict(player) 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 s...
by satoon101
Thu Aug 30, 2012 1:27 am
Forum: API Design
Topic: Extended event variables - for player objects and indeces
Replies: 11
Views: 12527

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

Satoon
by satoon101
Thu Aug 30, 2012 12:10 am
Forum: API Design
Topic: Extended event variables - for player objects and indeces
Replies: 11
Views: 12527

I vote no on this. All of this will be more easily done with the API once we get further along. Again, we do not want this plugin to hold people's hands constantly.

Satoon
by satoon101
Wed Aug 29, 2012 1:15 pm
Forum: General Discussion
Topic: paths.py and players/__init__.py contain failure code !
Replies: 4
Views: 4716

When you last updated, did you include ../addons/source-python/_engines/site-packages/path.py ? I updated it to fix the error in join: # Was def join(self, pnames): # Changed to def join(self, *pnames): Changelog: http://code.google.com/p/source-python/source/detail?r=3519892818e8460...

Go to advanced search