Search found 57 matches

by nergal
Fri Jun 19, 2015 4:41 am
Forum: Plugin Releases
Topic: simple death and kill streaks tracker
Replies: 16
Views: 13563

You also might want to set the deathstreaks regardless of whether victim id equals attacker id or not, otherwise suicides wouldn't count as deaths. in the cases of suicide, the killer is the player I believe. reason why range of 0-65 is because the Source Engine supports 64 players + a SourceTV or ...
by nergal
Wed Jun 17, 2015 7:50 pm
Forum: Plugin Releases
Topic: simple death and kill streaks tracker
Replies: 16
Views: 13563

L'In20Cible wrote:You should take a look at python dictionary! :)


Why a dictionary and not a list/array?
by nergal
Mon Jun 15, 2015 5:25 am
Forum: Plugin Releases
Topic: simple death and kill streaks tracker
Replies: 16
Views: 13563

simple death and kill streaks tracker

This is untested but it should work for any game supported on sauce.py :3 # Python Imports from collections import defaultdict # SourcePython imports from players.entity import PlayerEntity from players.helpers import userid_from_index from players.helpers import index_from_userid from events import...
by nergal
Sat Jun 06, 2015 10:45 pm
Forum: Plugin Development Support
Topic: help porting pawn plugin to py
Replies: 16
Views: 12741

no errors, and yes, using the latest of s.p :3
by nergal
Sat Jun 06, 2015 6:07 pm
Forum: Plugin Development Support
Topic: help porting pawn plugin to py
Replies: 16
Views: 12741

tried the plugin, still didn't work >_>

updated OP with latest py code
by nergal
Sat Jun 06, 2015 4:59 pm
Forum: Plugin Development Support
Topic: help porting pawn plugin to py
Replies: 16
Views: 12741

FYI you don't need things like this in SP as SP raises an exception if the userid is invalid: #def is_client_valid(userid) # index = index_from_userid(userid) # if index < 0 or index > If however you wanted to do the check anyway: # .. in some function providing a userid: try: index...
by nergal
Sat Jun 06, 2015 3:45 am
Forum: Plugin Development Support
Topic: help porting pawn plugin to py
Replies: 16
Views: 12741

help porting pawn plugin to py

hey guys, I'd thought I'd give s.p a shot by porting one of my old sm plugins to source.python! This plugin is meant to turn weapons transparent so they're entirely in your face. The idea is to be able to see the weapon without the weapon blocking your view! this is the original code #include <sourc...
by nergal
Fri Jun 05, 2015 1:59 am
Forum: Plugin Releases
Topic: Admin Commands
Replies: 9
Views: 11846

tried to load it but got an error.
by nergal
Thu Jun 04, 2015 2:20 am
Forum: General Discussion
Topic: Few questions regarding S.P and SourceMod
Replies: 18
Views: 13978

sorry one more question.

Can source.py use compiled python files aka .pyc ?
by nergal
Wed Jun 03, 2015 12:55 am
Forum: General Discussion
Topic: Few questions regarding S.P and SourceMod
Replies: 18
Views: 13978

by nergal
Tue Jun 02, 2015 11:54 am
Forum: General Discussion
Topic: Few questions regarding S.P and SourceMod
Replies: 18
Views: 13978

I'm also going to assume that the full Python std lib is 100% ready to use?
by nergal
Mon Jun 01, 2015 8:52 pm
Forum: General Discussion
Topic: Few questions regarding S.P and SourceMod
Replies: 18
Views: 13978

You can do that a couple different ways. It is highly recommended to at least use the first way to verify that the other plugin is loaded: from core.manager import core_plugin_manager test = core_plugin_manager.get_plugin_instance('test') if test is None: raise from test.test import...
by nergal
Mon Jun 01, 2015 3:54 pm
Forum: General Discussion
Topic: Few questions regarding S.P and SourceMod
Replies: 18
Views: 13978

alright FINAL question before I install S.P on all of my servers..... :3

Is there inter-plugin communication? If yes, how does it work?
by nergal
Mon Jun 01, 2015 8:39 am
Forum: General Discussion
Topic: Few questions regarding S.P and SourceMod
Replies: 18
Views: 13978

Few questions regarding S.P and SourceMod

I've found out recently that there is TF2 support for S.p which begs me to ask.... 1. Will S.P and SourceMod work without conflicting each other? My admins don't want to switch to S.P yet because they're still used to SM. Will having both S.P and SM cause crashes or other issues? 2. SM provided cook...
by nergal
Mon Jun 01, 2015 8:29 am
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 54351

holy shit, TF2 SUPPORT? Yes. I can finally port my mods for here!

I'm tired of Sourcemod and crappy pawn language.
by nergal
Sun Mar 15, 2015 3:37 pm
Forum: Whatever
Topic: Hello Everyone!
Replies: 5
Views: 7153

Certainly, welcome!! We could use more TF2 coders around here!! well I'm happy to help out! Here's a bit of my work so you can see what skill level I'm about at - https://bitbucket.org/assyrian My only question is what API is available for TF2 and how would I use it? the Wiki doesn't seem to point ...
by nergal
Sun Mar 15, 2015 3:08 pm
Forum: Whatever
Topic: Hello Everyone!
Replies: 5
Views: 7153

Hello Everyone!

Hello everybody, I'm Nergal! I'm a SourcePawn coder who generally scripts plugins for Alliedmodders. I've been wanting to branch out into some real programming but I needed something to motivate me to do so as I would get bored very quickly to do force myself to do something and not get anything out...

Go to advanced search