Search found 1406 matches

by satoon101
Sat Mar 25, 2017 2:43 pm
Forum: Plugin Development Support
Topic: Help on TypedCommand
Replies: 3
Views: 28

Re: Help on TypedCommand

For all examples, I will say there is no need to pass in None for permissions, as that is the default value. For your first issue, passing a list creates sub-commands. So, you are basically registering the command !say with a sub-command of /say . What you need to do is use 2 different decorators: @...
by satoon101
Sat Mar 25, 2017 2:07 pm
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 10
Views: 146

Re: Detonate a smoke grenade

Oops, I forgot the srv_check in those files. The next build should fix that error. If you want to make the Linux symbols visible again, you can use the attached IDA Python script and database. The database is basically a dump of all functions and their signatures I created with the last version of t...
by satoon101
Sat Mar 25, 2017 5:42 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 10
Views: 146

Re: Detonate a smoke grenade

I just found and added the dynamic functions for CSmokeGrenadeProjectile::Think_Detonate, CDecoyProjectile::Think_Detonate, and CSensorGrenadeProjectile::Think_Detonate. I also added the smokegrenade one to CS:S, as it has the same issue as CS:GO. I set the property to "detonate", but they...
by satoon101
Fri Mar 24, 2017 1:27 am
Forum: Plugin Development Support
Topic: Detonate a smoke grenade
Replies: 10
Views: 146

Re: Detonate a smoke grenade

I just added the detonate virtual function for CHEGrenadeProjectile and CMolotovProjectile, so it should be easier to detonate them by using that function directly. I, unfortunately, cannot find the virtual offset for CSmokeGrenadeProjectile, CSensorGrenadeProjectile, or CDecoyProjectile. I tried ju...
by satoon101
Thu Mar 23, 2017 3:14 am
Forum: Plugin Development Support
Topic: Lib or Plugin
Replies: 1
Views: 30

Re: Lib or Plugin

It doesn't "have" to be a custom package, but it might be easier for it to be one. I have been sorely needing an AFK detector for GunGame and have not gotten around to making one myself. So, if you do make one, I might end up using it. If you go the other route, you can use something like ...
by satoon101
Thu Mar 23, 2017 3:03 am
Forum: General Discussion
Topic: [CSGO] New Custom HUD (game_text)
Replies: 3
Views: 86

Re: [CSGO] New Custom HUD (game_text)

Nice find! Glad they finally got this working. The following is a working example using the messages package: from colors import BLUE, RED from events import Event from messages import HudMsg from players.entity import Player team_messages = { 2: HudMsg( message='HudMsg test message for Terr...
by satoon101
Wed Mar 22, 2017 12:46 pm
Forum: Whatever
Topic: Hello everyone! i didn't know where to post so here i am!
Replies: 3
Views: 84

Re: Hello everyone! i didn't know where to post so here i am!

Hello, and welcome to the forums! 1. There is nothing that you can do in SourcePawn that you can't also do in Source.Python. 2. I'm not sure why you think Python is that slow. It is slightly slower, obviously, but unless you are doing something major, you really won't notice much of a difference in ...
by satoon101
Wed Mar 15, 2017 3:13 pm
Forum: Plugin Development Support
Topic: [CSGO] Problem with "remove_team_restrictions"
Replies: 6
Views: 131

Re: [CSGO] Problem with "remove_team_restrictions"

I see the problem. Even though weapon_restrict_t and weapon_restrict_ct are declared at the global scope, you do not declare them as globals in _on_map_start when re-assigning them. When you re-assign and don't declare them as global in a function or method, they are interpreted as being local. You ...
by satoon101
Tue Mar 14, 2017 12:32 am
Forum: Plugin Development Support
Topic: [CSGO] Problem with "remove_team_restrictions"
Replies: 6
Views: 131

Re: [CSGO] Problem with "remove_team_restrictions"

The issue has to be somewhere else in your code: from filters.weapons import WeaponClassIter from weapons.restrictions import WeaponRestrictionHandler _scout = ['ssg08'] _all_weapons = set(weapon.name for weapon in WeaponClassIter()) restrict_handler = WeaponRestrictionHandle...
by satoon101
Sun Mar 12, 2017 3:07 pm
Forum: Plugin Development Support
Topic: Help for ward skill
Replies: 5
Views: 94

Re: Help for ward skill

I'm not sure I fully understand the question, but I believe you are asking what to do if the same player activates his ultimate more than once and there is overlap. If that is the case, then yes, you will need to store each of them separately in some sort of container like list.
by satoon101
Sun Mar 12, 2017 3:03 pm
Forum: Plugin Development Support
Topic: [CSGO] Problem with clan tag
Replies: 8
Views: 93

Re: [CSGO] Problem with clan tag

To test my first example, first open your server's ../cfg/source-python/core_settings.ini . Under the USER_SETTINGS section, set the commands for players to use to open the settings menu. Install the most_damage plugin and load it. On the server, use one of the commands to open the menu and navigate...
by satoon101
Sun Mar 12, 2017 2:31 pm
Forum: Plugin Development Support
Topic: [CSGO] Problem with clan tag
Replies: 8
Views: 93

Re: [CSGO] Problem with clan tag

Ayuto is right in that we do not currently have has_helmet available on CS:GO. I will add that shortly. It will not raise an error, though, since we allow plugin developers to set their own custom attributes with the Entity based classes. For a simple example of PlayerSettings, look at this plugin: ...
by satoon101
Sat Mar 11, 2017 6:38 pm
Forum: Plugin Development Support
Topic: [TF2] Retrieving the amount of ammo in a gun
Replies: 6
Views: 115

Re: [TF2] Retrieving the amount of ammo in a gun

You can get a list of all entity class names by using the dumpentityfactories command on the server. The current output for TF2 is: _ballplayertoucher _firesmoke _plasma ai_ally_speech_manager ai_battle_line ai_changehintgroup ai_changetarget ai_goal_assault ai_goal_follow ai_goal_lead ai_goal_lead_...
by satoon101
Sat Mar 11, 2017 5:37 pm
Forum: Plugin Development Support
Topic: Help for ward skill
Replies: 5
Views: 94

Re: Help for ward skill

I would recommend changing _is_on to _location and defaulting it to None . Then, in the repeated method, return if the _location is None otherwise use that as the starting origin in your if statement in that method. When the ultimate is used, store the player's location as _location . So, something ...
by satoon101
Sat Mar 11, 2017 4:46 pm
Forum: Plugin Requests
Topic: [HL2:DM] Let bodies drop something
Replies: 23
Views: 670

Re: [HL2:DM] Let bodies drop something

Try this: # ============================================================================= # >> IMPORTS # ============================================================================= # Python from collections import defaultdict # Source.Python from engines.precache import Model from entities.entity ...
by satoon101
Sat Mar 11, 2017 4:21 pm
Forum: Plugin Requests
Topic: [HL2:DM] es_blood to sp blood
Replies: 39
Views: 804

Re: [HL2:DM] es_blood to sp blood

Try this: from entities import TakeDamageInfo from entities.entity import Entity from entities.hooks import EntityCondition, EntityPreHook from memory import make_object from players.entity import Player from weapons.manager import weapon_manager DAMAGE_TRIGGERS = [ 'npc_grenade_frag', '...
by satoon101
Sat Mar 11, 2017 12:05 am
Forum: Plugin Requests
Topic: [HL2:DM] Let bodies drop something
Replies: 23
Views: 670

Re: [HL2:DM] Let bodies drop something

I thought Kami was still working on this, since he started another thread to figure out how to change the model of a weapon. I will try to combine what was learning in that thread to this one when I get the chance tomorrow, unless someone else wants to work on it beforehand.
by satoon101
Sat Mar 11, 2017 12:03 am
Forum: Plugin Requests
Topic: [HL2:DM] es_blood to sp blood
Replies: 39
Views: 804

Re: [HL2:DM] es_blood to sp blood

Oh, good point. I'll work on this tomorrow morning.
by satoon101
Fri Mar 10, 2017 6:10 pm
Forum: Plugin Development Support
Topic: [TF2] Retrieving the amount of ammo in a gun
Replies: 6
Views: 115

Re: [TF2] Retrieving the amount of ammo in a gun

The issue is because we don't have any weapon data for TF2: https://github.com/Source-Python-Dev-Team/Source.Python/tree/master/addons/source-python/data/source-python/weapons If you want to, please feel free to find out the info we need and create a pull request. You can use the current files for o...
by satoon101
Thu Feb 23, 2017 12:49 pm
Forum: Plugin Requests
Topic: [HL2:DM] es_blood to sp blood
Replies: 39
Views: 804

Re: [HL2:DM] es_blood to sp blood

Perfect! Thank you. I will add npc_tripmine to our weapon data, so the next SP build should fix the issue.

Go to advanced search