Search found 6 matches
- Sun Mar 12, 2017 12:19 pm
- Forum: Plugin Development Support
- Topic: [TF2] Retrieving the amount of ammo in a gun
- Replies: 6
- Views: 9392
Re: [TF2] Retrieving the amount of ammo in a gun
Everything you posted seems to be working except for the projectile code. from entities import TakeDamageInfo from entities.entity import Entity from entities.hooks import EntityCondition, EntityPreHook from memory import make_object @EntityPreHook(EntityCondition.is_player, 'on_take_damage&...
- Sat Mar 11, 2017 5:44 pm
- Forum: Plugin Development Support
- Topic: [TF2] Retrieving the amount of ammo in a gun
- Replies: 6
- Views: 9392
Re: [TF2] Retrieving the amount of ammo in a gun
Could you please post the exception you get? Also, which weapon did you test? Sorry, I probably should've included this before. I was using the original, and here is the exception. [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python...
- Sat Mar 11, 2017 5:40 pm
- Forum: Plugin Development Support
- Topic: [TF2] Retrieving the amount of ammo in a gun
- Replies: 6
- Views: 9392
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 ...
- Fri Mar 10, 2017 5:44 pm
- Forum: Plugin Development Support
- Topic: [TF2] Retrieving the amount of ammo in a gun
- Replies: 6
- Views: 9392
[TF2] Retrieving the amount of ammo in a gun
Hey, everybody! I was wondering if there is a way to find out the amount of ammo in a gun in TF2. I am using the weapons.entity.Weapon module thing and used player.active_weapon to find the weapon. What's strange is that I can access the value of a clip in my weapon but not the value of the ammo. Th...
- Wed Mar 08, 2017 10:15 pm
- Forum: Plugin Development Support
- Topic: Force weapon fire [TF2]
- Replies: 2
- Views: 4080
Re: Force weapon fire [TF2]
Thank you!
- Sun Mar 05, 2017 11:52 am
- Forum: Plugin Development Support
- Topic: Force weapon fire [TF2]
- Replies: 2
- Views: 4080
Force weapon fire [TF2]
If anyone can assist me, please. I'm looking for a method of forcing a specific player to fire their weapon. I understand that in the console you type +attack and weapon fire is forced, but I could not find a method of doing this through code.
Any replies will be greatly appreciated. Thanks!
Any replies will be greatly appreciated. Thanks!