Search found 190 matches

by arawra
Tue Dec 30, 2014 5:10 pm
Forum: Plugin Development Support
Topic: Compiling issue
Replies: 7
Views: 4805

After a fresh pull from the Github, still getting a few errors with some of the packages :\

Image
by arawra
Tue Dec 30, 2014 4:13 pm
Forum: Plugin Development Support
Topic: Compiling issue
Replies: 7
Views: 4805

Thanks for that, Ayuto. Pulling the repo again wasn't enough to fix it.

Now, I'm getting a new error after putting in the new binaries.
Image
by arawra
Tue Dec 30, 2014 6:26 am
Forum: Plugin Development Support
Topic: Compiling issue
Replies: 7
Views: 4805

Compiling issue

Having an issue when trying to use Build.bat on a Windows machine.

http://pastebin.com/WdrTVFsb
by arawra
Tue May 20, 2014 9:29 am
Forum: Plugin Development Support
Topic: Hooking respawn
Replies: 1
Views: 2782

Hooking respawn

Want to make sure I am hooking the right function. I have two other questions also. Does this take place every time a player spawns, or only at round start? I see that there is one parameter for RoundRespawn, but I'm not sure what it is and a quick google didn't pull anything up for me. For CS:Sourc...
by arawra
Sat May 17, 2014 6:54 am
Forum: Plugin Development Support
Topic: Nesting damage
Replies: 6
Views: 6309

Nesting damage

If I would like a player to have bonus damage on attacks, it is possible to modify the victim's health without using PlayerEntity().damage. However, if the damage were to kill a victim, I am not exactly sure where to go with this as that function leads to infinite regression. Adding a check to see i...
by arawra
Fri May 16, 2014 12:27 pm
Forum: Plugin Development Support
Topic: Getting Eye Angle of player
Replies: 4
Views: 4694

Got it.

PlayerEntity(player).eye_angle_x
PlayerEntity(player).eye_angle_y
by arawra
Fri May 16, 2014 11:44 am
Forum: Plugin Development Support
Topic: Getting Eye Angle of player
Replies: 4
Views: 4694

Would I have to scan the signature for "float m_angEyeAngles[0] (offset 8404)" in CCSPlayer, or is there a way to interact directly with CCSPlayer in Python? Tried using: PlayerEntity(player)._get_property('m_angEyeAngles[0]') PlayerEntity(player)._get_prope...
by arawra
Fri May 16, 2014 10:55 am
Forum: Plugin Development Support
Topic: Comparing Teams (interesting behavior)
Replies: 2
Views: 3281

Comparing Teams (interesting behavior)

I am was testing this code (for another thing) and when I am comparing teams, it seems to think the victim and player are on the same team. @SayCommand('!slay') def slay(player, teamonly, CCommand): myPlayer = PlayerEntity(userid_from_playerinfo(player)) for p...
by arawra
Sat May 10, 2014 8:44 pm
Forum: Plugin Development Support
Topic: Getting Eye Angle of player
Replies: 4
Views: 4694

Getting Eye Angle of player

What I would like to do is compare the eye angle of two players to determine if a player is behind another. I'm not seeing any properties in PlayerEntity for this, and was wondering if the functionality exists.
by arawra
Fri May 09, 2014 5:43 pm
Forum: Plugin Development Support
Topic: File object is referenced as string
Replies: 1
Views: 2504

File object is referenced as string

Not sure why my fileObj variable is being referenced as a string. TypeError: 'str' doesn't support buffer interface @SayCommand('!test') def test(player, teamonly, CCommand): fileObj = open('test.txt','wb') for x in dir(PlayerEntity): fileObj.write(x) #error here fileObj.close()
by arawra
Fri May 09, 2014 5:36 pm
Forum: Plugin Development Support
Topic: Sending messages to all players
Replies: 6
Views: 6771

You can supply your own tag to use on the second line. msg('This will be sent to all players.') def msg(the_message): formatted_message = '%s'%the_message for players in PlayerGenerator(): i = index_from_playerinfo(players) m = messages.SayText2(in...
by arawra
Mon May 05, 2014 10:00 pm
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 113038

@SayCommand('!test') def test(player, teamonly, CCommand): myPlayer = PlayerEntity(index_from_playerinfo(player)) msg(myPlayer.get_primary()) def msg(the_message): formatted_message = the_message for players in PlayerGenerator(): i = index_from_playerinfo(players) m = messages.SayText2(index=i, cha...
by arawra
Mon May 05, 2014 9:01 pm
Forum: Code examples / Cookbook
Topic: Damaging a player
Replies: 12
Views: 15770

Just a simple type error typo, I hope? @SayCommand('!test') def test(player, teamonly, CCommand): myPlayer = PlayerEntity(index_from_playerinfo(player)) myPlayer.damage(myPlayer.index, 1, DamageTypes.NERVEGAS, hitgroup='Generic') http://i.imgur.com/qZJBUvR.png
by arawra
Mon May 05, 2014 8:28 pm
Forum: Plugin Development Support
Topic: Where did conversions_c move to?
Replies: 2
Views: 3281

Where did conversions_c move to?

Was able to find PlayerGenerator and commands.ClientCommands, but this last one is eluding me...
by arawra
Mon May 05, 2014 6:10 pm
Forum: Whatever
Topic: Building for linux
Replies: 11
Views: 12359

Thanks for the update guys. Keep kicking ass!
by arawra
Sun May 04, 2014 8:03 pm
Forum: Plugin Development Support
Topic: Handling unicode characters
Replies: 7
Views: 6459

If the goal is to print, wouldn't this be what he's after then? data = pickle.load(open('playerdict.txt','rb'), encoding="bytes") Preserve data as bytes instead of encoding to UTF-8 first? But I'm not an expert at this. This will open your file in UTF-8 but...
by arawra
Sat May 03, 2014 9:03 pm
Forum: Plugin Development Support
Topic: Handling unicode characters
Replies: 7
Views: 6459

Still not a good solution :\ For now, I just pickled a second dictionary that converted or replaced the unicode characters. >>> for x,y in data.items(): ... if 'name' in data[x]: print(data[x]['name']) ... name1 name2 name3 Traceback (most recent call last): F...
by arawra
Sat May 03, 2014 7:42 pm
Forum: Plugin Development Support
Topic: Handling unicode characters
Replies: 7
Views: 6459

by arawra
Sat May 03, 2014 2:45 pm
Forum: Plugin Development Support
Topic: Handling unicode characters
Replies: 7
Views: 6459

Handling unicode characters

I've come across a rather bit of a pain for myself with pickling and loading pickles. When I am storing information that includes a player's name, I believe I'm going to need to make sure the strings are properly formatted so I don't get errors on the pickle load. This happened when I was trying to ...
by arawra
Sat Apr 19, 2014 7:17 pm
Forum: Plugin Releases
Topic: [d&d 3.5][wip]
Replies: 13
Views: 14633

UPDATE: Due to the wonderful help of the guys here, I have:

The ability to switch Classes, Races, Level-Adjustment Races, and Prestiges working (may be buggy)
XP is able to be obtained
Database functionality implemented (no pruning yet)

Go to advanced search