[HL2DM] Fragcloud

Release your plugins here!
User avatar
Kami
Global Moderator
Posts: 245
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

[HL2DM] Fragcloud

Postby Kami » Tue Dec 22, 2020 12:25 pm

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.

https://github.com/kamikazekuh/fragcloud


Update:
- Added fire effect and dynamic light effect for SMG Grenade and Frag explosion
User avatar
daren adler
Senior Member
Posts: 242
Joined: Sat May 18, 2019 7:42 pm

Re: [HL2DM] Fragcloud

Postby daren adler » Tue Dec 22, 2020 8:50 pm

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
User avatar
Kami
Global Moderator
Posts: 245
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: [HL2DM] Fragcloud

Postby Kami » Tue Dec 22, 2020 8:56 pm

Thank you for testing. Should be fixed now.
User avatar
daren adler
Senior Member
Posts: 242
Joined: Sat May 18, 2019 7:42 pm

Re: [HL2DM] Fragcloud

Postby daren adler » Tue Dec 22, 2020 9:06 pm

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?
User avatar
Kami
Global Moderator
Posts: 245
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: [HL2DM] Fragcloud

Postby Kami » Wed Dec 23, 2020 8:13 pm

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.
User avatar
daren adler
Senior Member
Posts: 242
Joined: Sat May 18, 2019 7:42 pm

Re: [HL2DM] Fragcloud

Postby daren adler » Thu Dec 24, 2020 4:00 am

OK will do, and again thank you :cool:

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

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 2 guests