Search found 136 matches

by arawra
Mon Oct 10, 2016 4:30 am
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 4973

Re: A menus package is now available!

That's correct. If you want to remove the open menu, you'll need to add that functionality in yourself to close the already open menu.
by arawra
Tue Aug 30, 2016 3:27 am
Forum: General Discussion
Topic: SP crashing on linux?
Replies: 45
Views: 1657

Re: SP crashing on linux?

They have it working now.
by arawra
Tue Aug 23, 2016 6:10 pm
Forum: Plugin Development Support
Topic: Remove Unsafe Characters
Replies: 4
Views: 282

Re: Remove Unsafe Characters

If you're worried about unsafe characters, you may also want to replace many unicode characters.
by arawra
Tue Aug 23, 2016 6:10 am
Forum: Plugin Development Support
Topic: Trouble with timers?
Replies: 1
Views: 172

Re: Trouble with timers?

Tested this with a bot in the server and it seemed to work ok... @ClientCommand('damage') def cDamage(command, index): if getClass(index) == 'Cleric': playerMessage(index, 'before %s %s'%(dndPlayers[index]['shield'], time.strftime(&...
by arawra
Tue Aug 23, 2016 5:52 am
Forum: Plugin Development Support
Topic: Trouble with timers?
Replies: 1
Views: 172

Trouble with timers?

Disclaimer: Yes, this code is not optimized and needs to be rewritten I'm having trouble getting a functional shield that recharges out of combat, similar to a shield from Halo (XBox). It appears that it is constantly recharging, and I do not want that to happen. The message does tell me that the ti...
by arawra
Sat Aug 20, 2016 7:56 pm
Forum: Plugin Development Support
Topic: stream[netchan_t::unreliabledata] buffer overflow (Player_hurt)
Replies: 3
Views: 241

Re: stream[netchan_t::unreliabledata] buffer overflow (Player_hurt)

I was going to do PreHooking, just thought that the loop may be caused by something else.
by arawra
Sat Aug 20, 2016 2:11 pm
Forum: Plugin Development Support
Topic: stream[netchan_t::unreliabledata] buffer overflow (Player_hurt)
Replies: 3
Views: 241

stream[netchan_t::unreliabledata] buffer overflow (Player_hurt)

@Event('player_hurt') def player_hurt(ev): if ev['attacker'] != ev['userid'] and ev['attacker'] != 0: vindex = index_from_userid(ev['userid']) aindex = index_from_userid(ev['attacker']) victim = Player(vindex) a...
by arawra
Fri Aug 19, 2016 11:33 am
Forum: General Discussion
Topic: SP crashing on linux?
Replies: 45
Views: 1657

Re: SP crashing on linux?

It was loading fine when renaming source-python.vdf, so I'm pretty sure it was the provider with their imaging thats causing it. Did load up fine in a VM.
by arawra
Fri Aug 19, 2016 9:31 am
Forum: General Discussion
Topic: SP crashing on linux?
Replies: 45
Views: 1657

SP crashing on linux?

Just rented a server from eoreality, and they're some variant of *nix server. Installing cs:go in Linux Mint 17 to see if its something else. L 08/19/2016 - 03:51:15: server_cvar: "cash_playerPreMinidumpCallback: updating dump comment crash_20160819035115_1.dmp[14396]: Uploading dump (out-of-pr...
by arawra
Wed Aug 17, 2016 7:20 pm
Forum: Plugin Development Support
Topic: Determining if a player is behind another player
Replies: 5
Views: 354

Re: Determining if a player is behind another player

Maybe 'behind' another player wasn't the proper wording. Should have said if one player isn't looking at another.
by arawra
Wed Aug 17, 2016 5:57 pm
Forum: Plugin Development Support
Topic: Determining if a player is behind another player
Replies: 5
Views: 354

Determining if a player is behind another player

Would this do it?

Syntax: Select all

if abs((victim.view_angle + 360) - (attacker.view_angle + 360)) <= 90:


E:

Syntax: Select all

if abs((victim.view_angle[1] + 360) - (attacker.view_angle[1] + 360)) <= 90:
by arawra
Tue Aug 16, 2016 10:27 pm
Forum: Plugin Development Support
Topic: Weapon constants
Replies: 7
Views: 305

Re: Weapon constants

I was able to come up with a different solution. Keep up the good work.
by arawra
Tue Aug 16, 2016 6:12 pm
Forum: Plugin Development Support
Topic: Weapon constants
Replies: 7
Views: 305

Re: Weapon constants

CS:GO
by arawra
Tue Aug 16, 2016 5:28 pm
Forum: Plugin Development Support
Topic: Weapon constants
Replies: 7
Views: 305

Re: Weapon constants

[SP] Caught an Exception: Traceback (most recent call last): File '..\addons\source-python\packages\source-python\events\listener.py', line 92, in fire_game_event callback(game_event) File '..\addons\source-python\plugins\dnd\dnd.py', line 341, in player_spawn player.unrestrict_weapons(*_all) File ...
by arawra
Mon Aug 15, 2016 8:29 pm
Forum: Plugin Development Support
Topic: Weapon constants
Replies: 7
Views: 305

Weapon constants

How do I use them in conjunction with weapon restrictions? from events import Event from players.entity import Player from weapons.constants import WeaponType @Event('player_spawn') def player_spawn(ev): player = Player(ev['index']) player.unrestrict_weapon...
by arawra
Mon Aug 15, 2016 3:07 am
Forum: Plugin Development Support
Topic: Player entity attributes
Replies: 1
Views: 168

Player entity attributes

What is the equivalent of players.entity.Player(index).isdead ? It would seem really inefficient to check if the player was in PlayerIter('dead').

E: PlayerInfo.is_dead
by arawra
Sun Aug 14, 2016 8:35 pm
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 4973

Re: A menus package is now available!

Is 'Option' no longer a part of the menus package?
by arawra
Thu Jul 16, 2015 5:16 pm
Forum: Plugin Development Support
Topic: Weapon clip how to
Replies: 1
Views: 232

Weapon clip how to

How would I get the current amount of ammo in a weapon's clip?
by arawra
Thu Jul 09, 2015 2:34 am
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 2110

Why am I not able to get a userid from the given index? @PreHook(on_take_damage) def pre_on_take_damage(args): #ammo attacker base_damage bullet damage damaged_other_players force inflictor penetrated position radius recoil reported_position stats type weapon info = make_object(T...

Go to advanced search