Search found 261 matches
- Sat Feb 11, 2017 9:20 am
- Forum: Plugin Development Support
- Topic: HL2DM Changing weapon model not working
- Replies: 2
- Views: 2776
Re: HL2DM Changing weapon model not working
And it it's working :D Thank you very much!
- Fri Feb 10, 2017 9:15 pm
- Forum: Plugin Development Support
- Topic: HL2DM Changing weapon model not working
- Replies: 2
- Views: 2776
HL2DM Changing weapon model not working
Hey guys, it seems that in HL2DM I am not able to change the model of a weapon I just spawned. I've tried it with this code: from players.entity import Player from events import Event from engines.precache import Model from entities.entity import Entity @Event('player_say') def say...
- Thu Feb 02, 2017 8:15 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Let bodies drop something
- Replies: 30
- Views: 52207
Re: [HL2:DM] Let bodies drop something
I just did and its still the same problem!
- Thu Feb 02, 2017 7:46 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Let bodies drop something
- Replies: 30
- Views: 52207
Re: [HL2:DM] Let bodies drop something
So I'm pretty lost right now with this. Maybe its because I'm still sick, but I cant seem to figure this out: # ============================================================================= # >> IMPORTS # ============================================================================= # Python from col...
- Wed Feb 01, 2017 5:59 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Let bodies drop something
- Replies: 30
- Views: 52207
Re: [HL2:DM] Let bodies drop something
Amazing idea, I will try it that way. Thank you!
- Mon Jan 30, 2017 5:22 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Let bodies drop something
- Replies: 30
- Views: 52207
Re: [HL2:DM] Let bodies drop something
Thank you guys for your help! I'm currently pretty ill so I couldn't fix the first version I made yet. satoons version looks a lot better and cleaner though and I'll have a look at it.
- Tue Jan 24, 2017 6:20 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
Would it be possible that returning False in a touch Hook would make any item unpickable? After using this "fix" (not yours, I just tried using return False at the end of the hook) I seem to be unable to pickup any weapon (so at spawn I have none either).
- Sat Jan 21, 2017 10:18 am
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
Would there be any drawbacks to this if I just do whatever I need to do in the hook and return False (without the trampoline)? It seems that this solved the crash for me.
Anyways, thank you very much for your help! :>
Anyways, thank you very much for your help! :>
- Wed Jan 18, 2017 6:51 pm
- Forum: Plugin Development Support
- Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
- Replies: 84
- Views: 59551
Re: Modifying chat with sayfilter but SayCommand doesnt "register"
I had the same problem with other plugin say command compatibility when making a sayfilter with sourcemod and I bypassed this by making a "whitelist" that includes all commands (yes you'd have to do this by hand propably) and then just check in the sayhook if the command is in the whitelis...
- Tue Jan 17, 2017 6:19 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
Okay, I have a test server up:
IP: 176.9.155.153:28240
Password: 1234
type in "Merde" in the chat and it will change to dm_erde if its not on the map already^^ This should give you a working version I hope
IP: 176.9.155.153:28240
Password: 1234
type in "Merde" in the chat and it will change to dm_erde if its not on the map already^^ This should give you a working version I hope
- Tue Jan 17, 2017 5:06 am
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
Actually Erde means Earth in german! But I like the merde version better ;D
I uploaded it for you :
http://www.filedropper.com/processing/filedownload.php?id=dmerde
I uploaded it for you :
http://www.filedropper.com/processing/filedownload.php?id=dmerde
- Tue Jan 17, 2017 4:47 am
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
No problem! Game: HL2DM OS: Ubuntu 14.04 LTS Map: dm_erde Coords (of one of the crashing func_door_rotating): Vector(-234.5, 1032.5, 312.1600036621094) Smallest snippet that is able to reproduce the crash: @EntityPreHook(EntityCondition.equals_entity_classname('prop_physics'), ...
- Mon Jan 16, 2017 6:35 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
How would I achieve to exlude func_door_rotating from beeing hooked? Sorry, I'm still pretty noobish when it comes to the entity Stuff :D
- Sun Jan 15, 2017 7:08 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
I think I was able to narrow down what part was crashing! Using this code did not result in any crash: @EntityPreHook(EntityCondition.is_player, 'touch') def pre_start_touch(stack): entity = make_object(Entity, stack[0]) other = make_object(Entity, stack[1]) c...
- Sun Jan 15, 2017 4:48 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
I edited my last post again but for clarity: Its only this small snippet that is running and causing the issues! The end goal would be to touch an entity and destroy it after that (picking up a crowbar you threw away before). But this lines alone do cause the crash. Edit: "start_touch" doe...
- Sun Jan 15, 2017 4:11 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
Re: EntityPreHook "touch" crashing
It goes all the way to the 3, which seems strange, as that should be the player entity right? Edit: thinking about it, that does not make any sense. wouldn't that mean that it does not crash there at all? Edit2: Okay, so I tried instead of actually getting an entity to just print a debug message: @E...
- Sun Jan 15, 2017 2:10 pm
- Forum: Plugin Development Support
- Topic: EntityPreHook "touch" crashing
- Replies: 22
- Views: 17284
EntityPreHook "touch" crashing
So I'm using this code on a Linux hl2dm dedicated server: @EntityPreHook(EntityCondition.equals_entity_classname('prop_physics'), 'touch') def pre_start_touch(stack): entity = make_object(Entity, stack[0]) other = make_object(Entity, stack[1]) ...
- Sat Jan 14, 2017 2:08 am
- Forum: Plugin Development Support
- Topic: m_clrRender calculation
- Replies: 4
- Views: 3993
Re: m_clrRender calculation
Yes, this line was exactly what I needed, thank you very much!
- Sat Jan 14, 2017 2:03 am
- Forum: Plugin Development Support
- Topic: m_clrRender calculation
- Replies: 4
- Views: 3993
Re: m_clrRender calculation
I just edited my post as I thought someone would point me to the existing color functions! :D
- Sat Jan 14, 2017 1:44 am
- Forum: Plugin Development Support
- Topic: m_clrRender calculation
- Replies: 4
- Views: 3993
m_clrRender calculation
Hey guys, I'm trying to set the color of an entity with its m_clrRender property. The problem is, m_clrRender is not a Color type but int which needs to be calculated in order to get the right RGB color. I found this old thread on eventscripts http://forums.eventscripts.com/viewtopic.php?t=17774 but...