Giter VIP home page Giter VIP logo

udm's Issues

Inefficient ammo refill & auto-silence implementation

Due to the fact that I didn't know better, the current implementation of ammo refill & auto-silence weapons could potentially cause lags and poor responsiveness in a 'real world' public server.

Do not use the plugin until I figure out a way to improve the plugin's performance!

Buy Menu inventory bug

If you have no weapons selected and use the buy menu to buy only a primary weapon, you will still respawn with your standard pistol. This does not affect the guns command, though.

This bug only occurs in CS:GO.

Clip of M249 Para is set to 0 after a headshot

Date          : 2017-12-22 14:02:12.236519
OS            : Windows-7-6.1.7601-SP1
Game          : css
SP version    : unversioned
Server plugins:
   00: Source.Python, (C) 2012-2016, Source.Python Team.
SP plugins:
   00: udm, 1.8.3, https://forums.sourcepython.com/viewtopic.php?f=7&t=1643

Unable to add other grenades, and using !udm leaves you without weapons, even after 'guns'

This is my first attempt at using SourcePython, so forgive any lapses in setup. I'm using the latest build #695, and fetched the files from your github rep instead of the release zip. Couple of problems :

  1. I can only use the HE grenade. Is there any way you can enable the other grenade types too?
  2. After using !udm for test purposes, I found that I was stuck without weapons until I reconnected to the server. Using "guns" didn't help.

ValueError: Property "m_bSilencerOn" not found for entity type "weapon_ak47"

I haven't figured out yet when this happens, but it seems that there are some cases that pass all your checks.

[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\udm\udm.py", line 303, in on_pre_bump_weapon
    if weapon.get_property_bool('m_bSilencerOn') != inventory_item.silencer_option:
  File "..\addons\source-python\packages\source-python\entities\_base.py", line 377, in get_property_bool
    return self._get_property(name, 'bool')
  File "..\addons\source-python\packages\source-python\entities\_base.py", line 535, in _get_property
    name, self.classname))

ValueError: Property "m_bSilencerOn" not found for entity type "weapon_ak47"

Dropped weapons are not removed

Dropped weapons are not removed on Windows due to an exception in on_post_drop_weapon. There are two different exception, caused by the same reason.

[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\udm\udm.py", line 312, in on_post_drop_weapon
    player = make_object(PlayerEntity, stack_data[0])

ValueError: Pointer is NULL.
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\udm\udm.py", line 312, in on_post_drop_weapon
    player = make_object(PlayerEntity, stack_data[0])
  File "..\addons\source-python\packages\source-python\entities\_base.py", line 218, in _obj
    return cls(index_from_pointer(ptr))

ValueError: Conversion from "Pointer" (<_memory.Pointer object at 0x1DD8C470>) to "Index" failed.

The reason and a workaround for this is described here:
https://forums.sourcepython.com/viewtopic.php?p=7542#p7542

Since you are delaying the removal code anyway, you might want to use a pre-hook.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.