Search found 5 matches

by statik
Wed Feb 24, 2016 1:04 pm
Forum: Plugin Development Support
Topic: HL2MP player_hurt damage dealt/attacker weapon/hitgroup?
Replies: 3
Views: 3459

Thanks for the reply! I will give that code a try asap and will post any changes I may need to make to make it work.... It definitely points me in the right direction. Can you (or anyone) recommend some core concepts I should learn about Source engine? I have a fairly strong knowledge, because I've ...
by statik
Wed Feb 24, 2016 9:06 am
Forum: Plugin Development Support
Topic: HL2MP player_hurt damage dealt/attacker weapon/hitgroup?
Replies: 3
Views: 3459

HL2MP player_hurt damage dealt/attacker weapon/hitgroup?

Hello, @Event('player_hurt') def on_player_hurt(e): print(e.variables.as_dict()) Shows me: {'userid': 2, 'health': 87, 'attacker': 2, 'priority': 5} Which seems sparse. Is there more I'm missing? I would like to also get the victim's health/armor lost, their hitgroup, and the attacker's weapon. I sa...
by statik
Fri Feb 19, 2016 8:56 am
Forum: Plugin Development Support
Topic: First plugin; epic traceback - ImportError - SOLVED
Replies: 3
Views: 3065

I worked it out. I had initially created my plugin file in the root plugins folder before I realized I needed to create a directory first....Then I just "saved as" and never deleted the old file. Everything is working as-expected now.
by statik
Fri Feb 19, 2016 8:44 am
Forum: Plugin Development Support
Topic: First plugin; epic traceback - ImportError - SOLVED
Replies: 3
Views: 3065

After thinking about the error over lunch, I decided to try saving the file as __init__.py and it worked! So either there is a bug in play here, or the Getting Started tutorial should reflect that we save our main plugin file as __init__.py instead of "name-of-plugin.py"
by statik
Fri Feb 19, 2016 7:39 am
Forum: Plugin Development Support
Topic: First plugin; epic traceback - ImportError - SOLVED
Replies: 3
Views: 3065

First plugin; epic traceback - ImportError - SOLVED

Picking up Source.Python for the first time...Not going well :( Error message: sp load apdm [SP] Loading plugin 'apdm'... [SP] Caught an Exception: Traceback (most recent call last): AttributeError: 'module' object has no attribute '__path__' During handling of the above exception, another exception...

Go to advanced search