Search found 331 matches

by VinciT
Fri Oct 02, 2020 3:30 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 6945

Re: [HL2DM/ANY] Hooking VphysicsCollision

With BaseEntity I'm either getting: [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\plugins\vphysics_collision\vphysics_collision.py", line 41, in vphysics_collision_pre print(base_entity.classname) AttributeError: 'NoneType' object has no attribu...
by VinciT
Thu Oct 01, 2020 11:16 pm
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

If the models are T posing that means they are missing animations required by the NPC. In other words, they were made either for the player or some other NPC. Animations can be played through code, but it's much better to have them properly setup within the model.
by VinciT
Thu Oct 01, 2020 9:08 pm
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

Okay, the way you have it setup right now, the pyramid head model is being set for the npc_zombie, and the bubble nurse model for the npc_headcrab - which is why the nurse is moving like a headcrab. If your intention was to set both models for the npc_zombie, replace the dictionary with this: NPC_MO...
by VinciT
Thu Oct 01, 2020 8:09 pm
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

Painkiller wrote:Hi vincit, I have added these models. Unfortunately they now move like headcraps and not as they should.
Can you show me your NPC_MODELS dictionary?
by VinciT
Thu Oct 01, 2020 8:07 pm
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 6945

Re: [HL2DM/ANY] Hooking VphysicsCollision

Thank you! I managed to get the first three attributes working, but the last one (array of entity pointers) is giving me some trouble. This is what I have so far: # ../vphysics_collision/vphysics_collision.py # Source.Python from core import PLATFORM from entities.entity import Entity from memory im...
by VinciT
Thu Oct 01, 2020 6:30 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 6945

[HL2DM/ANY] Hooking VphysicsCollision

I'm working with a bunch of prop_physics entities and I'm trying to check when they hit the world. I settled for the CPhysicsProp::VPhysicsCollision() function, but I've no idea how to recreate the gamevcollisionevent_t struct. All 4 attributes are arrays/lists of 2 - how can I recreate those? # ../...
by VinciT
Thu Oct 01, 2020 6:00 am
Forum: Plugin Requests
Topic: hl2dm crossbow arrows with a fire flame.
Replies: 24
Views: 12189

Re: hl2dm crossbow arrows with a fire flame.

Perhaps they are set when the entity actually spawns as opposed to being created? Just tested it - the OnEntitySpawned/OnNetworkedEntitySpawned listener doesn't even get called when a crossbow_bolt spawns. Looking back at some requests I've done, I'm pretty sure I've had to use the single frame del...
by VinciT
Thu Oct 01, 2020 5:42 am
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

I checked if the flashlight/torch worked with my initial method for the darkening - it didn't. :frown: One question, can we also spawn our own models ? # ../silent_hill/silent_hill.py (npc edition) # Python import random # Source.Python from colors import Color from commands.server import Se...
by VinciT
Tue Sep 29, 2020 4:30 am
Forum: Plugin Requests
Topic: hl2dm crossbow arrows with a fire flame.
Replies: 24
Views: 12189

Re: hl2dm crossbow arrows with a fire flame.

L'In20Cible wrote:Not only it is shorter, but faster due to the internal caching. :smile:
Jeez.. look at those numbers! Amazing stuff L'In20Cible! Plugin has been supercharged in the original post. :tongue:
by VinciT
Tue Sep 29, 2020 3:42 am
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

Cool, I'm glad you guys are enjoying the update! :grin: 'npc_antlion' Still crashes the server under Linux. But it is not bad. I can get along fine without it. This might be a long shot, but let's try it anyway. Go to line 795 (might be different if you've modified the plugin) and change this: if se...
by VinciT
Tue Sep 29, 2020 2:03 am
Forum: Plugin Development Support
Topic: [Cs:s] OnTakeDamage
Replies: 7
Views: 3884

Re: [Cs:s] OnTakeDamage

cssbestrpg wrote:when i shoot and have m_iDamage it shows at awp 448, thought it should increase it
That's very strange.. Can you show me where you're setting the m_iDamage value?

And could you add this after the damage has been finalized?

Syntax: Select all

print(info.damage)
by VinciT
Tue Sep 29, 2020 1:52 am
Forum: Plugin Requests
Topic: hl2dm crossbow arrows with a fire flame.
Replies: 24
Views: 12189

Re: hl2dm crossbow arrows with a fire flame.

Side note, I made the changes to EntityDictionary so that the factory can be set to None to explicitly disable it: Awesome! Guess I'll go ahead and start using that straight away. :smile: I did find out that if shot by arrow and you are still on fire before you die, then when you re-spawn, you are ...
by VinciT
Mon Sep 28, 2020 5:53 am
Forum: Plugin Requests
Topic: hl2dm crossbow arrows with a fire flame.
Replies: 24
Views: 12189

Re: hl2dm crossbow arrows with a fire flame.

L'In20Cible wrote:You could simply override __missing__ to disable the factory:
Man.. I'm so used to using the OnEntityDeleted listener, I completely forgot that I could do that. Thanks for the tip!

L'In20Cible wrote:Clearing it from its parent when it is removed would be the best option though.
I'll add that in tomorrow. :tongue:
by VinciT
Mon Sep 28, 2020 5:47 am
Forum: Plugin Releases
Topic: D&D 5e CSGO
Replies: 5
Views: 6077

Re: D&D 5e CSGO

Nice! I'll probably hop on the server tomorrow if I have time. I really dig the blade barrier effect you've made - very cool stuff. :grin: While skimming through your code, I noticed you left in some testing/debugging code within the player_say event - should probably remove that. Either way, I can'...
by VinciT
Mon Sep 28, 2020 5:18 am
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

Sorry for the late update, life kinda got in the way. Here's the updated plugin: # ../silent_hill/silent_hill.py (npc edition) # Python import random # Source.Python from colors import Color from commands.server import ServerCommand from core import PLATFORM, echo_console from engines.precac...
by VinciT
Sun Sep 27, 2020 6:17 pm
Forum: Plugin Development Support
Topic: [Cs:s] OnTakeDamage
Replies: 7
Views: 3884

Re: [Cs:s] OnTakeDamage

I'm pretty sure changing damage should work in the on_take_damage_alive hook. That's usually how I modify damage. # ../on_take_damage/on_take_damage.py # Source.Python from entities import TakeDamageInfo from entities.hooks import EntityPreHook, EntityCondition @EntityPreHook(EntityCondition.is_...
by VinciT
Thu Sep 24, 2020 6:15 pm
Forum: Plugin Requests
Topic: hl2dm crossbow arrows with a fire flame.
Replies: 24
Views: 12189

Re: hl2dm crossbow arrows with a fire flame.

Thank you. I will give it a try tomarow, again thank you for all your help. =UPDATE= Works great :wink: :cool: You do a very good job Glad it works for you! I've updated the code in my previous post to fix the error you got. Sounds like a perfect situation to use an EntityDictionary.on_automaticall...
by VinciT
Thu Sep 24, 2020 6:02 pm
Forum: Plugin Development Support
Topic: Css bombplant site get
Replies: 4
Views: 2787

Re: Css bombplant site get

Even though the events page says the site attribute is a short, you retrieve its value by using get_int() : @Event('bomb_planted') def bomb_planted(args): site = args.get_int('site') print(f'bomb site index: {site}') An easier way to get this v...
by VinciT
Tue Sep 22, 2020 5:43 am
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44811

Re: [HL2:DM] Little Silent Hill

Popping in to give you a status update. I will most likely post the updated plugin later today. Just gotta work out some tiny details.
by VinciT
Tue Sep 22, 2020 5:38 am
Forum: Plugin Requests
Topic: hl2dm crossbow arrows with a fire flame.
Replies: 24
Views: 12189

Re: hl2dm crossbow arrows with a fire flame.

This should do the trick: # ../fiery_bolts/fiery_bolts.py # Python import random # Source.Python from engines.precache import Model from engines.sound import Sound from entities.constants import (EntityStates, RenderMode, RenderEffects, MoveType, WORLD_ENTITY_INDEX) from entities.dictionary ...

Go to advanced search