Search found 190 matches

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: 3731

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: 3731

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: 30404

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: 30404

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: 4155

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: 4155

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: 5261

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: 5261

Re: Weapon constants

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

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: 5261

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: 2214

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: 59364

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: 2147

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: 17778

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...
by arawra
Tue Jul 07, 2015 7:43 am
Forum: Plugin Development Support
Topic: WeaponEntity.set_color
Replies: 3
Views: 2993

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))
by arawra
Tue Jul 07, 2015 6:45 am
Forum: Plugin Development Support
Topic: WeaponEntity.set_color
Replies: 3
Views: 2993

WeaponEntity.set_color

Is WeaponEntity not a proper entity to call set_color from? I'm getting a KeyValue error for rendermode.
by arawra
Fri May 29, 2015 9:50 am
Forum: Plugin Development Support
Topic: Changing player velocity
Replies: 5
Views: 4163

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...
by arawra
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: 12690

So I was just trying to use this script again, and got a lot of the kinks out with the updates. There is one traceback though I'm not sure how to work through because I'm not sure what values to pass to Pointer in memory module. pointer = Pointer(trace.get_entity().get_base_entity(&#...
by arawra
Wed May 27, 2015 3:41 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17778

I remember what the problem was...

The weapon is the same as the original attack, so if you nest it you can not determine when to stop the recursion.
by arawra
Wed May 27, 2015 3:30 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17778

That seems to me to be more convoluted. Wouldn't KISS be a better approach in this circumstance? I do have to use point_hurt already for other things.

Go to advanced search