Search found 1109 matches

by L'In20Cible
Wed Nov 25, 2020 4:36 am
Forum: Plugin Development Support
Topic: [HL2DM] Variant.type crashing
Replies: 3
Views: 339

Re: [HL2DM] Variant.type crashing

Ah, I see. Thank you for the detailed explanation. It's still crashing after casting it to an integer. The value is most likely invalid, as you pointed out. Perhaps it's related to something else. The scenario I was referring to was: from entities.datamaps import FieldType # CRASH print(FieldTy...
by L'In20Cible
Tue Nov 17, 2020 8:43 am
Forum: Plugin Development Support
Topic: [HL2DM] Variant.type crashing
Replies: 3
Views: 339

Re: [HL2DM] Variant.type crashing

Running the following code with an npc_cscanner that's set to hate players (e.g. temp_scanner ) causes a crash: # ../scanner_output/scanner_output.py # Source.Python from listeners import OnEntityOutput @OnEntityOutput def on_entity_output(output, activator, caller, value, delay): if 'O...
by L'In20Cible
Sun Nov 15, 2020 12:52 am
Forum: Plugin Development Support
Topic: [Cs:s] Server crashes at newest build of source.python
Replies: 4
Views: 220

Re: [Cs:s] Server crashes at newest build of source.python

Works fine for me on CS:S. In the rpgmod i use the damage code as skill part, it crashes the server immeadily when suppose to do damage. The server crashes is linux, could that effect? Just test it yourself and you will see: from entities.entity import Entity from events import Event from players.h...
by L'In20Cible
Sat Oct 31, 2020 4:33 am
Forum: Whatever
Topic: model_header values ?
Replies: 14
Views: 663

Re: model_header values ?

Speed0x wrote:okay, great. is the v_index you used for css or csgo ? sorry : i didn't mention that i am testing this in csgo.. :(

Was for CS:S about 3 years ago.. for CS:GO, it would be something around 204 for windows and 205 for linux. Just test offsets around that and you should find it soon enough.
by L'In20Cible
Sat Oct 31, 2020 4:03 am
Forum: Whatever
Topic: model_header values ?
Replies: 14
Views: 663

Re: model_header values ?

so the VFunction "GetBoneTransform" takes care of calculating the correct inworld-position by taking into account animations etc ? ( i am asking for comprehension as it would be done behind the scenes ) Yes, it will returns the current position of the bone regardless if the player is movi...
by L'In20Cible
Sat Oct 31, 2020 3:52 am
Forum: Whatever
Topic: model_header values ?
Replies: 14
Views: 663

Re: model_header values ?

I think the default bone positions are not their idling stance, but their T pose they get when they hold no weapons with "idle" i meant "default" in the sequence tab of SDK. i think the problem is that in my code i am just reading default mdl file bone positions... not "in ...
by L'In20Cible
Sat Oct 31, 2020 3:17 am
Forum: Whatever
Topic: model_header values ?
Replies: 14
Views: 663

Re: model_header values ?

Why do you expect them to be different? that's what i was wondering... when i calculated them ingame they were only aligning for some models... when i check in studiomdl the idle animation of both models ( modelviewer csgo:sdk ) bones LOOK different. but perhaps that derives from the animation. bon...
by L'In20Cible
Sat Oct 31, 2020 2:49 am
Forum: Whatever
Topic: model_header values ?
Replies: 14
Views: 663

Re: model_header values ?

hey i've checked the bone structure for playermodels, but when i receive the bones it gives me the same values on position and euler values for all models ? ( as if this function only reads the data for one specific type of model ? ) Why do you expect them to be different? The skeletal structure is...
by L'In20Cible
Fri Oct 30, 2020 9:41 am
Forum: Plugin Requests
Topic: HL2DM color text
Replies: 7
Views: 352

Re: HL2DM color text

Don't call the plugin 'colors'. There's a package called 'colors' inside SP itself, which is what is imported and causing that error. I thought we would have a check for that in the plug-in loading logic :confused: We do, but it will only catch packages not modules because we internally lookup the ...
by L'In20Cible
Fri Oct 30, 2020 4:41 am
Forum: Plugin Requests
Topic: [Cs:s] chat command to change map
Replies: 13
Views: 502

Re: [Cs:s] chat command to change map

Listing files from the maps directory can be inaccurate though, since they can also be found into custom or even packed in vpk. It would be best to just ask the engine whether the map is valid or not: from commands.typed import TypedSayCommand from engines.server import engine_server from engines.se...
by L'In20Cible
Fri Oct 23, 2020 6:21 pm
Forum: Plugin Requests
Topic: HL2DM-cscanner spawned
Replies: 10
Views: 1186

Re: HL2DM-cscanner spawned

Since CNPC_CScanner has its own OnTakeDamage_Alive() function, I believe the hook will only be limited to npc_cscanner entities. Would there still be a reason to use a try/except here? Then that should do. If they have their own override in their dispatch table they shouldn't be called by any other...
by L'In20Cible
Fri Oct 23, 2020 12:15 am
Forum: Plugin Requests
Topic: HL2DM-cscanner spawned
Replies: 10
Views: 1186

Re: HL2DM-cscanner spawned

... Looks good! Here some points to consider: if index_from_pointer(stack_data[0]) in Scanner.cache: Is it guaranteed to only be called for networked entities? Not fully sure, but I don't think damage event are limited to them, which would raise here in such case. A try/except may be safer....
by L'In20Cible
Wed Oct 21, 2020 11:36 am
Forum: Plugin Requests
Topic: Can Anybody port SM Plugin to Source Python?
Replies: 19
Views: 5834

Re: Can Anybody port SM Plugin to Source Python?

Ayuto wrote:That's actually not a lot :grin:

That is the single-player version as well, the multi-player version is even lower. :tongue:
by L'In20Cible
Wed Oct 21, 2020 11:21 am
Forum: General Discussion
Topic: concatenating 2 items at a time in a python list
Replies: 2
Views: 366

Re: concatenating 2 items at a time in a python list

Syntax: Select all

for i in range(1, len(data), 2):
new_file.write(f'{data[i] + data[i - 1]}\n')
by L'In20Cible
Sat Oct 10, 2020 8:34 pm
Forum: Plugin Requests
Topic: Crowbar throw
Replies: 12
Views: 2283

Re: Crowbar throw

So.. Daren.. I noticed a few days ago that you removed a couple of your posts from this thread. If I remember correctly, you were getting some errors - probably an issue with long range kills. In case you're not satisfied with the plugin Painkiller posted, here's my take on your request: ... Looks ...
by L'In20Cible
Sun Oct 04, 2020 6:28 pm
Forum: General Discussion
Topic: Could you get banned for this?
Replies: 2
Views: 997

Re: Could you get banned for this?

Afaik, the only assets restricted are the ones that you get from loot crates. Custom ones, or ones ported from other games should be fine.
by L'In20Cible
Fri Oct 02, 2020 7:38 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 893

Re: [HL2DM/ANY] Hooking VphysicsCollision

It's caused by the 32 bit alignment. Offsets are: struct vcollisionevent_t { IPhysicsObject *pObjects[2]; // 0 int surfaceProps[2]; // 8 bool isCollision; // 16 bool isShadowCollision; // 17 float deltaCollisionTime; // 20 float collisionSpeed; // 24 IPhysicsCollisionData *pInternalData; // 28 };
by L'In20Cible
Fri Oct 02, 2020 3:18 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 893

Re: [HL2DM/ANY] Hooking VphysicsCollision

Tried BaseEntity? It's possible that entity is simply not networked.

Go to advanced search