Search found 220 matches

by velocity
Tue Nov 23, 2021 2:52 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

Great idea with storing the address-index relationship in a dict, I'll definitely try this. We can maybe even go one step further and store the address-entity relationship, so I don't have to do a second dict lookup for the entity after getting the index, as I am already using EntityDictionary to st...
by velocity
Mon Nov 22, 2021 10:04 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

Maybe this issue is along the lines of this: https://github.com/Source-Python-Dev-Team/Source.Python/issues/332 . It probably would be better all together handling the PassServerEntityFilter on the C++ side and then in python you have function arguments like in the sourcemod implementation. SourceMo...
by velocity
Mon Nov 22, 2021 9:24 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

Isn't the point of having that extra functionality such as the 'raise_exception' choice for exactly functions like this. Even if the general answer is to use try/except. This is a good example, where performance outweigh elegance.
by velocity
Mon Nov 22, 2021 5:43 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

conversion error on index_from_pointer

This function is very heavy on the server performance is there a better way to handle index_from_pointer conversion error besides 'try' 'except'? Maybe this is something should be handled on c++ side, by returning None instead of conversion error? server = memory.find_binary('server', sr...
by velocity
Fri Oct 29, 2021 9:15 pm
Forum: General Discussion
Topic: Sourcepython installation libffi.so.6 error
Replies: 5
Views: 5908

Re: Sourcepython installation libffi.so.6 error

I fixed it, somehow
by velocity
Fri Oct 29, 2021 8:49 pm
Forum: General Discussion
Topic: Sourcepython installation libffi.so.6 error
Replies: 5
Views: 5908

Re: Sourcepython installation libffi.so.6 error

I'm using the Pterodactyl Panel, and I tried making a new CS:GO server where I installed Source-python, but now I get the same error. I have another csgo server on the panel, which was created very long time ago, where Source Python works fine, but on the new one I get the error. Pterodactyl is usin...
by velocity
Fri Oct 29, 2021 4:55 pm
Forum: General Discussion
Topic: Sourcepython installation libffi.so.6 error
Replies: 5
Views: 5908

Re: Sourcepython installation libffi.so.6 error

I have same error again, but now I cannot do
apt-get install libffi6:i386
because the it cannot find the package. I think this is because of ubuntu 20.04
by velocity
Thu Oct 14, 2021 8:58 pm
Forum: Plugin Development Support
Topic: trace attack
Replies: 6
Views: 5188

Re: Detect knife attack

yep! just arrived at the same: http://wiki.sourcepython.com/developing ... DamageInfo

thanks, works!
by velocity
Thu Oct 14, 2021 8:48 pm
Forum: Plugin Development Support
Topic: trace attack
Replies: 6
Views: 5188

Re: Detect knife attack

oh I see, I thought it followed this, just like in sourcemod: // TraceAttack function Action (int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &ammotype, int hitbox, int hitgroup); Well they seems a little cryptic to me? How would I get the attacker ...
by velocity
Thu Oct 14, 2021 8:24 pm
Forum: Plugin Development Support
Topic: trace attack
Replies: 6
Views: 5188

Re: Detect knife attack

Works! I have a problem with stack_data[1] @EntityPreHook(EntityCondition.is_player, get_trace_attack_function) def pre_trace_attack(stack_data): victim = make_object(Player, stack_data[0]) attacker = make_object(Player, stack_data[1]) Traceback (most recent call last): File "../addons/source-p...
by velocity
Thu Oct 14, 2021 8:22 am
Forum: Plugin Development Support
Topic: trace attack
Replies: 6
Views: 5188

trace attack

Hi! I was wondering if it is possible to detect a knife attack if it is a teammate and has godmode. I tried hooking "on_take_damage", but it doesn't fire. I have been looking at trace_attack, but it doesn't exist in the .ini data files. Any ideas? This is for css/csgo
by velocity
Tue Oct 12, 2021 12:45 pm
Forum: Plugin Development Support
Topic: Old Code, Do I still need to make these checks?
Replies: 2
Views: 2602

Old Code, Do I still need to make these checks?

Hi! It has been a long time, since I was active here. So I was reading through some old code and I was wondering if these try-catch cases are still necessary to prevent crashes and is this still the "correct" way to do this? @EntityPreHook(EntityCondition.equals_entity_classname(&#...
by velocity
Wed Jul 17, 2019 9:46 pm
Forum: Whatever
Topic: Donate to Source-Python - how?
Replies: 5
Views: 18125

Re: Donate to Source-Python - how?

So when is the donate button coming out, I'd like to donate and I think other people want to :embarrassed:
by velocity
Thu Jun 20, 2019 9:55 am
Forum: Plugin Development Support
Topic: CSGO Linux - Server crash on player.kick
Replies: 3
Views: 3969

Re: CSGO Linux - Server crash on player.kick

It is crashing for me, I do have SourceMod with many plugins, but the kick plugin is the only source python plugin. When I use queue_command_string("kickid ...") no crashes, but if you are unable to reproduce that's very unfortunate. I'll have to run some more tests then. Did you test with...
by velocity
Wed Jun 19, 2019 1:05 pm
Forum: Plugin Development Support
Topic: CSGO Linux - Server crash on player.kick
Replies: 3
Views: 3969

CSGO Linux - Server crash on player.kick

When I use player.kick server crashes. I haven't tested with player.ban but I assume it is the same as the player is also kicked.
by velocity
Tue Jun 11, 2019 8:56 pm
Forum: Plugin Development Support
Topic: [CS:GO] Removing Warmup HUD
Replies: 5
Views: 5499

Re: [CS:GO] Removing Warmup HUD

Works, but it hides ALL menues !admin and other stuff
by velocity
Wed May 29, 2019 6:27 pm
Forum: Plugin Development Support
Topic: [CS:GO] Removing Warmup HUD
Replies: 5
Views: 5499

Re: [CS:GO] Removing Warmup HUD

Yes,
by velocity
Sun May 26, 2019 8:37 pm
Forum: Plugin Development Support
Topic: [CS:GO] Removing Warmup HUD
Replies: 5
Views: 5499

[CS:GO] Removing Warmup HUD

Is it possible to remove only the warmup hud in CS:GO? The reason for this is, in the new cs:go update it is only possible to record demos in warmup or freezetime.
by velocity
Sun May 05, 2019 9:57 pm
Forum: General Discussion
Topic: [CS:GO] SourcePython + SourceMod
Replies: 11
Views: 11348

Re: [CS:GO] SourcePython + SourceMod

So I chose to load SourcePython before SourceMod because that doesn't break the server, I noticed the only thing that doesn't work from SourceMod SPECIFICALLY is: HookEntityOutput( "trigger_teleport", "OnStartTouch", hookstuff ); public void hookstuff( const char[] sz...

Go to advanced search