Search found 62 matches

by Hedgehog
Wed Aug 20, 2014 1:01 pm
Forum: Plugin Development Support
Topic: Nesting damage
Replies: 6
Views: 6354

Is it possible to get attacker weapon from TakeDamageInfo object or I should do it through PlayerEntity.active_weapon? I was trying to do something like this, but both inflictor and attacker properties return attacker player index and weapon always equal -1. def pre_on_take_damage(args): ...
by Hedgehog
Mon Aug 11, 2014 6:58 pm
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 66488

While working with menus package I faced a problem: As I know 1 unicode symbol is equal to 2 bytes symbols in size, so if we use unicode in the menu it become twice smaller. Can somebody fix it? CS:S, Windows, July 17 build UPD: The menu isn't being send with this error. Doesn't matter. Setting MAX...
by Hedgehog
Mon Aug 11, 2014 9:24 am
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 66488

While working with menus package I faced a problem: DLL_MessageEnd: Refusing to send user message ShowMenu of 256 bytes to client, user message size limit is 255 bytes As I know 1 unicode symbol is equal to 2 bytes symbols in size, so if we use unicode in the menu it become twice smaller. Can somebo...
by Hedgehog
Sun Jul 27, 2014 6:21 am
Forum: Plugin Development Support
Topic: [ES>SP] Port Possible?
Replies: 16
Views: 12267

As I remember PlayerEntity.isdead had same problem some time ago... Not sure about now :)

By the way, is_precached don't work on CS:S windows server (don't know about other one).
by Hedgehog
Sat Jul 26, 2014 7:53 pm
Forum: Plugin Development Support
Topic: [ES>SP] Port Possible?
Replies: 16
Views: 12267

You don't need to precache sounds if you are using the Sound class. It will take care of it for you. ;) https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/engines/sound.py#L140 No, you need. EngineSound.is_sound_precached don't work :) It...
by Hedgehog
Sat Jul 26, 2014 5:56 pm
Forum: Plugin Development Support
Topic: Best way to hook something on player
Replies: 8
Views: 7313

What exactly do you mean? I'm talking about 3rd line from this code: Weapon_CanUse = manager.virtual_function( 259 if PLATFORM == 'windows' else 260, (Argument.POINTER,), Return.BOOL ) You wrote there Argument.POINTER . But what I should write in other cases?
by Hedgehog
Sat Jul 26, 2014 1:05 pm
Forum: Plugin Development Support
Topic: Best way to hook something on player
Replies: 8
Views: 7313

OMG, thanks! But what will happen after player, whose pointer we used, disconnect?

UPD: How I can get what I should pass in second argument of virtual_function()?
by Hedgehog
Sat Jul 26, 2014 12:28 pm
Forum: Plugin Development Support
Topic: [ES>SP] Port Possible?
Replies: 16
Views: 12267

by Hedgehog
Sat Jul 26, 2014 9:54 am
Forum: Plugin Development Support
Topic: Best way to hook something on player
Replies: 8
Views: 7313

Best way to hook something on player

I'm trying to hook several actions like WeaponCanUse, TakeDamage, etc (all from SDKHooks) on a player. And after some time of suffering I got this (for some reason it works...): from core import PLATFORM from entities.helpers import index_from_pointer from events import Event from filters.players im...
by Hedgehog
Wed Jul 23, 2014 4:53 am
Forum: Plugin Development Support
Topic: Explosion...
Replies: 3
Views: 4010

Ayuto wrote:TempEntities.explosion() is not doing any damage, because the method really just creates the effect. You will have to add the damage on your own.

Oops... I need to sleep more :D

How to create a black circle on the ground like env_explosion has?
by Hedgehog
Tue Jul 22, 2014 1:03 pm
Forum: Plugin Development Support
Topic: Explosion...
Replies: 3
Views: 4010

Explosion...

Is it possible to fire Explode at entity env_explosion? I tried to use explosion from TempEntities, but it looks very different from the env_explosion one. from effects import TempEntities from engines.server import EngineServer from events import Event from filters.recipients import RecipientFilter...
by Hedgehog
Thu Jun 19, 2014 8:49 am
Forum: General Discussion
Topic: Edit forum posts
Replies: 11
Views: 9407

Maybe you haven't confirmed your email address?

Some forum engines (not sure about vBulletin 4) have restrictions for users with no confirmed email by default.
by Hedgehog
Wed Jun 11, 2014 3:45 pm
Forum: Plugin Development Support
Topic: Sounds and effects
Replies: 4
Views: 4600

Thank you) Works ok now.
by Hedgehog
Mon Jun 09, 2014 5:58 pm
Forum: Plugin Development Support
Topic: Sounds and effects
Replies: 4
Views: 4600

I'll have to test out sounds myself. I am fairly certain that the iEntIndex is the index of the entity to emit the sound from. I'm not sure how the vecOrigin affects that. It could possibly be crashing for you if the index 1 is not filled on your server when you call emit_sound, so it tries to emit...
by Hedgehog
Sat Jun 07, 2014 7:59 pm
Forum: Plugin Development Support
Topic: Sounds and effects
Replies: 4
Views: 4600

Sounds and effects

I'm trying to play sound from CS:S to player, but my server crashes on emit_sound command. from events import Event from players.entity import PlayerEntity from players.helpers import index_from_userid from engines.sound import EngineSound from engines.sound import Channels from engines.sound import...
by Hedgehog
Thu Jun 05, 2014 10:01 pm
Forum: Plugin Development Support
Topic: AcceptEntityInput
Replies: 10
Views: 8495

Well its normal you tell the game the bullet has passed 2 objects before hurting the player so less damage is.expected Nothing changes if I remove it... The OrangeBox engine doesn't have an iObjectsPenetrated, only CS:GO does. After several attempts to fix it I took your code from this forum, but :(
by Hedgehog
Thu Jun 05, 2014 8:38 am
Forum: Plugin Development Support
Topic: AcceptEntityInput
Replies: 10
Views: 8495

Whenever I use DamageTypes.FALL, it seems to do the correct damage. Am I doing something wrong? from entities.constants import DamageTypes from events import Event from players.entity import PlayerEntity from players.helpers import index_from_userid @Event def player_say(event): userid = ev...
by Hedgehog
Wed Jun 04, 2014 5:33 pm
Forum: Plugin Development Support
Topic: AcceptEntityInput
Replies: 10
Views: 8495

L'In20Cible wrote:The damages are adjusted depending the type you use

I've tried several types from addons/source-python/data/source-python/entities/constants/orangebox.ini and with all of them damage get decreased in 2.857 times.
by Hedgehog
Wed Jun 04, 2014 4:54 pm
Forum: Plugin Development Support
Topic: AcceptEntityInput
Replies: 10
Views: 8495

I'm trying to deal damage over point_hurt hurt = BaseEntity(ServerTools.create_entity('point_hurt')) hurt.name = 'killer' + str(hurt.index) hurt.edict.set_key_value_string('DamageTarget', player.edict.get_key_value_string('targetname')) hurt.edict.set_key_value_string('damage', '150') hurt.edict.set...
by Hedgehog
Wed Jun 04, 2014 1:31 pm
Forum: Plugin Development Support
Topic: AcceptEntityInput
Replies: 10
Views: 8495

AcceptEntityInput

Does Source.Python has some function similar to AcceptEntityInput from SourceMod or I need to call CBaseEntity::AcceptInput directly?

Go to advanced search