Search found 190 matches
- Sat Aug 20, 2016 7:56 pm
- Forum: Plugin Development Support
- Topic: stream[netchan_t::unreliabledata] buffer overflow (Player_hurt)
- Replies: 3
- Views: 3761
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.
- Sat Aug 20, 2016 2:11 pm
- Forum: Plugin Development Support
- Topic: stream[netchan_t::unreliabledata] buffer overflow (Player_hurt)
- Replies: 3
- Views: 3761
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...
- Fri Aug 19, 2016 11:33 am
- Forum: General Discussion
- Topic: SP crashing on linux?
- Replies: 45
- Views: 30719
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.
- Fri Aug 19, 2016 9:31 am
- Forum: General Discussion
- Topic: SP crashing on linux?
- Replies: 45
- Views: 30719
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...
- Wed Aug 17, 2016 7:20 pm
- Forum: Plugin Development Support
- Topic: Determining if a player is behind another player
- Replies: 5
- Views: 4201
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.
- Wed Aug 17, 2016 5:57 pm
- Forum: Plugin Development Support
- Topic: Determining if a player is behind another player
- Replies: 5
- Views: 4201
Determining if a player is behind another player
Would this do it?
E:
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:
- Tue Aug 16, 2016 10:27 pm
- Forum: Plugin Development Support
- Topic: Weapon constants
- Replies: 7
- Views: 5308
Re: Weapon constants
I was able to come up with a different solution. Keep up the good work.
- Tue Aug 16, 2016 6:12 pm
- Forum: Plugin Development Support
- Topic: Weapon constants
- Replies: 7
- Views: 5308
Re: Weapon constants
CS:GO
- Tue Aug 16, 2016 5:28 pm
- Forum: Plugin Development Support
- Topic: Weapon constants
- Replies: 7
- Views: 5308
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 ...
- Mon Aug 15, 2016 8:29 pm
- Forum: Plugin Development Support
- Topic: Weapon constants
- Replies: 7
- Views: 5308
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...
- Mon Aug 15, 2016 3:07 am
- Forum: Plugin Development Support
- Topic: Player entity attributes
- Replies: 1
- Views: 2234
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
E: PlayerInfo.is_dead
- Sun Aug 14, 2016 8:35 pm
- Forum: News & Announcements
- Topic: A menus package is now available!
- Replies: 26
- Views: 67379
Re: A menus package is now available!
Is 'Option' no longer a part of the menus package?
- Thu Jul 16, 2015 5:16 pm
- Forum: Plugin Development Support
- Topic: Weapon clip how to
- Replies: 1
- Views: 2163
Weapon clip how to
How would I get the current amount of ammo in a weapon's clip?
- Thu Jul 09, 2015 2:34 am
- Forum: Plugin Development Support
- Topic: point_hurt: cs go
- Replies: 28
- Views: 17939
- Tue Jul 07, 2015 7:43 am
- Forum: Plugin Development Support
- Topic: WeaponEntity.set_color
- Replies: 3
- Views: 3003
Yeap. Had to in order to get PlayerEntity to change color.
Syntax: Select all
for weapon_index in PlayerEntity(player).weapon_indexes():
weapon = WeaponEntity(weapon_index)
weapon.set_color(Color(255, 255, 255, amount))
- Tue Jul 07, 2015 6:45 am
- Forum: Plugin Development Support
- Topic: WeaponEntity.set_color
- Replies: 3
- Views: 3003
WeaponEntity.set_color
Is WeaponEntity not a proper entity to call set_color from? I'm getting a KeyValue error for rendermode.
- Fri May 29, 2015 9:50 am
- Forum: Plugin Development Support
- Topic: Changing player velocity
- Replies: 5
- Views: 4200
Changing player velocity
I want to be able to make players leap. I thought this would be the way to do so, but it doesn't have the desired result. A player's velocity doesn't seem to change at all. from events import Event from mathlib import Vector from players.entity import PlayerEntity from players.helpers import * @Even...
- Fri May 29, 2015 9:14 am
- Forum: Plugin Development Support
- Topic: how to show name of player that you are pointing to
- Replies: 22
- Views: 12802
- Wed May 27, 2015 3:41 pm
- Forum: Plugin Development Support
- Topic: point_hurt: cs go
- Replies: 28
- Views: 17939
- Wed May 27, 2015 3:30 pm
- Forum: Plugin Development Support
- Topic: point_hurt: cs go
- Replies: 28
- Views: 17939