Search found 190 matches

by arawra
Wed May 27, 2015 3:13 pm
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

arawra wrote:Just to be certain, I also tried with the latest release.


I like being thorough.
by arawra
Wed May 27, 2015 3:09 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17726

The damage isn't all dealt at once.
by arawra
Wed May 27, 2015 2:52 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17726

I'd love to use Entity.take_damage in a prehook or player_hurt event. Is there a different way to do this to not cause infinite loops or is the entity creation the only real way?
by arawra
Wed May 27, 2015 2:38 pm
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

arawra wrote:I had - latest compiled SP


:>) Compiled from last night's source.
by arawra
Wed May 27, 2015 2:00 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17726

[SP] Caught an Exception: Traceback (most recent call last): File '..\addons\source-python\packages\source-python\listeners\tick\delays.py', line 60, in __call__ self.callback(*self.args, **self.kwargs) File '..\addons\source-python\packages\source-python\listeners\tick\repeat.py', line 294, in _ex...
by arawra
Wed May 27, 2015 1:30 pm
Forum: Plugin Development Support
Topic: Adding poison with multiple instances
Replies: 0
Views: 2458

Adding poison with multiple instances

Trying to wrap my ahead around a such that I can 'poison' a person, and if I do it again EXTEND the original duration, and allow others their own instances. This is my first solution and am looking for pointers or other helpful information. #called on the victim, such as victim.poison(attacker, ...
by arawra
Wed May 27, 2015 11:41 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

Thats literally all I had - latest compiled SP with that little snippet. You can see my autoexec in the back there.
by arawra
Wed May 27, 2015 11:11 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

Just to be certain, I also tried with the latest release. [SP] Loading plugin 'damagetest'... [SP] Caught an Exception: Traceback (most recent call last): File '..\addons\source-python\packages\source-python\plugins\manager.py', line 72, in __missing__ instance = self.instance(plugin_name, self.base...
by arawra
Wed May 27, 2015 11:05 am
Forum: Plugin Development Support
Topic: Cs:go color & some weapons
Replies: 15
Views: 15611

I was also trying to test out giving players items, but I think the signature/offset may have changed with the latest update. No tracebacks. @Event def player_say(game_event): player = PlayerEntity(index_from_userid(game_event.get_int('userid'))) player.give_n...
by arawra
Wed May 27, 2015 11:00 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

CS:GO with the latest source for SP

Image
by arawra
Wed May 27, 2015 10:57 am
Forum: Plugin Releases
Topic: FlashFun v1.0 re-release
Replies: 32
Views: 44535

[SP] Caught an Exception: Traceback (most recent call last): File '..\addons\source-python\packages\source-python\events\listener.py', line 93, in fire_game_event callback(game_event) File '..\addons\source-python\plugins\flashfunsp\flashfunsp.py', line 298, in player_spawn player.prepare() File '....
by arawra
Wed May 27, 2015 8:13 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

This crashes my server when I try to join. from entities import TakeDamageInfo from entities.helpers import index_from_pointer from memory import make_object from memory.hooks import EntityPreHook from players.entity import PlayerEntity from weapons.entity import WeaponEntity @EntityPreHook([...
by arawra
Wed May 27, 2015 8:09 am
Forum: Plugin Development Support
Topic: Cs:go color & some weapons
Replies: 15
Views: 15611

I've been playing around tonight seeing what I can do. I thought I had the alpha changing with this code: @Event def player_spawn(game_event): victim_userid = game_event.get_int('userid') victim = PlayerEntity(index_from_userid(victim_userid)) victim.render_co...
by arawra
Wed May 27, 2015 5:56 am
Forum: Plugin Development Support
Topic: Cs:go color & some weapons
Replies: 15
Views: 15611

Does this mean the end of Rogues in my mod...?
by arawra
Wed May 27, 2015 4:57 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

Whats the trick to getting this sort of script to load automatically after map start?
by arawra
Wed May 27, 2015 4:29 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

EntityPreHook can't be found from memory.hooks. E: I just checked the repo, and apparently my version differs. Updating again... EE: Looks like I need to build from source? This crashes the server: from engines.server import engine_server from entities import TakeDamageInfo from entities.helpers imp...
by arawra
Wed May 27, 2015 3:41 am
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11858

So neither of these examples have worked for me. I'm guessing its because of a new release/syntax. Would it be possible to get an updated version of these scripts?

For example, @PreHook(<entity>) always errors because of the arrows in the syntax.
by arawra
Wed May 27, 2015 2:59 am
Forum: Plugin Development Support
Topic: Changing player speed
Replies: 3
Views: 2949

E: Was being silly with custom attribute naming...
by arawra
Tue May 26, 2015 6:56 pm
Forum: Plugin Development Support
Topic: Changing player speed
Replies: 3
Views: 2949

Changing player speed

Using PlayerEntity.speed didn't give me any change of player speed, so I decided to use set_property_float('m_flLaggedMovementValue'). Whenever I modify this value and I jump, I seem to freeze and the server console spits out this: DataTable warning: player: Out-of-range value (929.852112) in SendPr...
by arawra
Tue May 26, 2015 5:20 pm
Forum: Plugin Development Support
Topic: Class attributes as Dictionary keys and values
Replies: 4
Views: 3301

Just needed to sort out my API better.

Go to advanced search