[HL2:DM] Let bodies drop something

A place for requesting new Source.Python plugins to be made for your server.

Please request only one plugin per thread.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [HL2:DM] Let bodies drop something

Postby L'In20Cible » Sat Mar 11, 2017 5:36 pm

Painkiller wrote:The model is always pink and black.

That's normal. Into item_equipment.vmt, you can see the path of the vtf:

Code: Select all

models/items/item_equipment

So you need to place the file item_equipment.vmt and item_equipment.vtf file into the ../materials/models/items/* directory.
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Sat Mar 11, 2017 5:55 pm

Yes is my mistake.

Thus now also the 2 error solved.

Thanks to all who helped
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Tue Mar 14, 2017 6:48 pm

Ok I unfortunately found,
The model is half-baked in the ground.

can fix this ?
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Wed Mar 22, 2017 7:24 pm

Can nobody held with this?
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Sun Jun 25, 2017 6:37 pm

For some time the backpack has disappeared, half in the ground.

I have nothing changed except SP update.
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Sat Jul 01, 2017 8:36 am

Could someone help me with this problem?
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Sat Oct 07, 2017 9:22 am

Hi i find a problem.

Code: Select all

e with "grenade_frag"

[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/weapon_drop/weapon_drop.py", line 77, in _drop_pack
    primary_ammo = weapon.ammo
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 72, in get_ammo
    player = self._validate_ammo()
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 57, in _validate_ammo
    ) or self.ammoprop == -1:
  File "../addons/source-python/packages/source-python/entities/_base.py", line 113, in __getattr__
    return getattr(make_object(server_class, self.pointer), attr)
  File "../addons/source-python/packages/source-python/entities/classes.py", line 552, in fget
    value = getattr(ptr, 'get_' + type_name)(offset)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte


and another problem you can picup infinite smg1_grenades
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Tue Jun 04, 2019 6:57 am

Hello, now I found this error in the logs.

Code: Select all

[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/weapon_drop/weapon_drop.py", line 78, in _drop_pack
    primary_ammo = weapon.ammo
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 73, in get_ammo
    player = self._validate_ammo()
  File "../addons/source-python/packages/source-python/weapons/_base.py", line 61, in _validate_ammo
    weapon=self.classname

ValueError: Unable to get ammoprop for weapon_slam
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Fri Sep 13, 2019 5:36 pm

I'd like to insert a pickup sound.
Would that serve as an example?

Syntax: Select all

Sound('/ambient/machines/thumper_startup1.wav').play(player.index)


Or do I still need this?

Syntax: Select all

from players.helpers import index_from_userid
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Wed Sep 18, 2019 11:32 am

Nobody can help ?
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] Let bodies drop something

Postby Painkiller » Tue Jan 25, 2022 5:21 pm

I find a error in my weapon_drop plugin.
can anybody help.

Code: Select all

2022-01-25 18:16:39 - 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/deathmsg/deathmsg.py", line 85, in player_death
    if killer.active_weapon.classname == "weapon_physcannon":

AttributeError: 'NoneType' object has no attribute 'classname'

Return to “Plugin Requests”

Who is online

Users browsing this forum: No registered users and 2 guests