Page 1 of 1

[HL2DM] Fragcloud

Posted: Tue Dec 22, 2020 12:25 pm
by Kami
Hey guys, this is a remake of an old Eventscripts plugin that adds a cloud to explosive kills, shakes the player and turns his screen red for a small amount of time.


Update:
- Added fire effect and dynamic light effect for SMG Grenade and Frag explosion


Edit: Reacting to false accusations of this beeing a private plugin I decided to not take any chances and remove the link.

Re: [HL2DM] Fragcloud

Posted: Tue Dec 22, 2020 8:50 pm
by daren adler
I got this.

Code: Select all

2020-12-22 13:01:21 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event
    callback(game_event)
  File "..\addons\source-python\plugins\fragcloud\fragcloud.py", line 22, in player_death
    attacker = Player.from_userid(ev['attacker'])
  File "..\addons\source-python\packages\source-python\players\_base.py", line 109, in from_userid
    return cls(index_from_userid(userid), caching=caching)

ValueError: Conversion from "Userid" (0) to "Index" failed

Re: [HL2DM] Fragcloud

Posted: Tue Dec 22, 2020 8:56 pm
by Kami
Thank you for testing. Should be fixed now.

Re: [HL2DM] Fragcloud

Posted: Tue Dec 22, 2020 9:06 pm
by daren adler
Kami wrote:Thank you for testing. Should be fixed now.

Thank You :cool:

update: I tryed to change the materials for all of them, its goes through without errors, but it still only shows the ones it came with. Itryed for the orb ball after kill effect ar2.material = "materials/x/killstreaks_v2/light5.vmt"
for the smg1_grenade i used ar2.material = "materials/x/killstreaks_v2/smoketex_1.vmt"
for the grenade_frag i used ar2.material = "materials/x/killstreaks_v2/smoketex_1.vmt"
and for rpg_missile i used ar2.material = "materials/x/killstreaks_v2/realex1.vmt".. But none show, it still shows the ones it came with,,could you help me?

Re: [HL2DM] Fragcloud

Posted: Wed Dec 23, 2020 8:13 pm
by Kami
Thank you for reporting that problem. It seems that I need to use a different function to set the material.

Edit: I uploaded a fix for your problem. The plugin now includes the right materials and you can change the materials by changing the file here:

Syntax: Select all

combine_material = "x/killstreaks_v2/light5.vmt"
smg1_grenade_material = "x/killstreaks_v2/orbsmoke1.vmt"
frag_material = "x/killstreaks_v2/smokeball2.vmt"
rpg_material = "x/killstreaks_v2/smoke.vmt"


If the files you add here exsist they will be added to downloads automatically.

Re: [HL2DM] Fragcloud

Posted: Thu Dec 24, 2020 4:00 am
by daren adler
OK will do, and again thank you :cool:

Just checked it and ...WOW you did it :cool: , Very cool and great work :grin: