Search found 769 matches

by L'In20Cible
Sun Nov 12, 2017 8:17 am
Forum: Plugin Development Support
Topic: Get muzzle position
Replies: 20
Views: 804

Re: Get muzzle position

@L'In20Cible what if you test this code: I didn't test, but can already tells it won't help. Moving the z axis by 64 (or directly using player.view_offset.z) will only move the vector up without taking the player's angle into consideration and will be in front of the player's eyes no matter where t...
by L'In20Cible
Sun Nov 12, 2017 7:46 am
Forum: Plugin Development Support
Topic: Get muzzle position
Replies: 20
Views: 804

Re: Get muzzle position

I'm trying to get the world position at the time a player shoots their weapon (or more precisely, on bullet_impact and OnTakeDamage). I did find a few SM plugins that use CBaseCombatCharacter::Weapon_ShootPosition(). I tried adding the virtual function to my entity data, but it gives an error (from...
by L'In20Cible
Sat Nov 11, 2017 11:53 pm
Forum: Plugin Development Support
Topic: Get muzzle position
Replies: 20
Views: 804

Re: Get muzzle position

I can't seem to find ValveBiped.flash. That bone is on the weapon's world models: from studio.cache import model_cache models = ( 'models/weapons/w_rif_ak47.mdl', 'models/weapons/v_rif_ak47.mdl', 'models/player/t_phoenix.mdl' ) for model in models: print(model...
by L'In20Cible
Sat Nov 11, 2017 12:46 am
Forum: Plugin Development Support
Topic: Get muzzle position
Replies: 20
Views: 804

Re: Get muzzle position

To get the muzzle location of an equipped weapon, you would need to get the position of the ValveBiped.weapon_bone bone of the player's model, get a rotation matrix to convert its position to world coordinates based on the player's origin/angles, then get the local bone associated with the muzzle at...
by L'In20Cible
Tue Nov 07, 2017 4:57 am
Forum: Whatever
Topic: Free games!!
Replies: 32
Views: 3380

Re: Free games!!

Thank you!
by L'In20Cible
Tue Nov 07, 2017 2:15 am
Forum: Plugin Requests
Topic: Hi New here
Replies: 29
Views: 986

Re: Hi New here

Welcome to the forums!

What kind of gunmenu?
by L'In20Cible
Sun Nov 05, 2017 3:24 am
Forum: Plugin Requests
Topic: [HL2:DM] Modelshooser
Replies: 2
Views: 189

Re: [HL2:DM] Modelshooser

Setting for DM only red models and TDM blue and red models. The code you posted doesn't set model based on gamemode, but set a random model out of 72 to the players that are spawning. I'm not entirely sure what exactly you are looking for, could you elaborate? How exactly do you differentiate from ...
by L'In20Cible
Thu Nov 02, 2017 10:57 pm
Forum: Plugin Development Support
Topic: Bots: Console gets spammed with buy zone warning
Replies: 5
Views: 237

Re: Bots: Console gets spammed with buy zone warning

How about not removing the buyzones, but simply turning them off?

Syntax: Select all

for buyzone in EntityIter('func_buyzone'):
buyzone.call_input('Disable')
by L'In20Cible
Thu Nov 02, 2017 1:18 pm
Forum: Code examples / Cookbook
Topic: Two ways to give a weapon + something about CS:GO weapons
Replies: 21
Views: 1193

Re: Two ways to give a weapon + something about CS:GO weapons

I don't know about the IDs, but just thought I would mention that you can directly use Weapon.item_definition_index. Also, I just noticed that you was printing __dict__. However, if you want to print the dynamic attributes of the entity you must use dir(weapon).
by L'In20Cible
Wed Nov 01, 2017 10:27 pm
Forum: Code examples / Cookbook
Topic: Two ways to give a weapon + something about CS:GO weapons
Replies: 21
Views: 1193

Re: Two ways to give a weapon + something about CS:GO weapons

I won't be able to test that before the weekend, but there is a new method to create entities in CS:GO: https://github.com/alliedmodders/hl2sdk/commit/7a988dce0bd46c820002ea8169e259cdb8f11199 Interesting. I just did some quick tests and adding the following to Entity.create seems to work just fine:...
by L'In20Cible
Wed Nov 01, 2017 8:29 pm
Forum: Code examples / Cookbook
Topic: Two ways to give a weapon + something about CS:GO weapons
Replies: 21
Views: 1193

Re: Two ways to give a weapon + something about CS:GO weapons

Well, then you don't have to set the model. And you need to set the origin of the weapon instead of calling the touch() method. The following doesn't create the named weapon where you are looking? weapon = Weapon.create(weapon_name) weapon.origin = player.view_coordinates weapon.spawn(&#...
by L'In20Cible
Wed Nov 01, 2017 8:07 pm
Forum: Code examples / Cookbook
Topic: Two ways to give a weapon + something about CS:GO weapons
Replies: 21
Views: 1193

Re: Two ways to give a weapon + something about CS:GO weapons

Move the spawn() call before setting the model. Weapons are special when it comes to models because this is handled by the weapon scripts and processed by the weapons being physically spawned into the world. If you read world_model_index before it being spawned, it won't returns anything. Overall, t...
by L'In20Cible
Wed Nov 01, 2017 3:05 pm
Forum: Code examples / Cookbook
Topic: Two ways to give a weapon + something about CS:GO weapons
Replies: 21
Views: 1193

Re: Two ways to give a weapon + something about CS:GO weapons

This error occurs when m_szModelName is an empty string. Try the following instead:

Syntax: Select all

model = Model(
string_tables[Model.precache_table][weapon.world_model_index])

Also, please use the PYTHON syntax highlighter instead of the generic CODE when posting python code.
by L'In20Cible
Mon Oct 30, 2017 5:58 pm
Forum: Code examples / Cookbook
Topic: Two ways to give a weapon + something about CS:GO weapons
Replies: 21
Views: 1193

Re: Two ways to give a weapon + something about CS:GO weapons

EDIT: Actually, you don't even need teleport , simply setting the .origin property should work as well. And is definitely better, as well. Teleport to set the origin should mainly be used (and is the main reason why it got added to the data to begins with) when the entity declares m_vecOrigin as ex...
by L'In20Cible
Tue Oct 24, 2017 9:23 am
Forum: Plugin Releases
Topic: GunGame v1.2.2
Replies: 30
Views: 1332

Re: GunGame v1.0.0

Glad to see GunGame back to life!! I will try to add french translations sometime this week. What hosting companies are good these days? For quality CS:GO servers, good service and cheap price I would have to recommend taking a look at Host Havoc . As for CS:S servers, I always had good experience w...
by L'In20Cible
Fri Oct 20, 2017 1:06 am
Forum: Plugin Development Support
Topic: Customize Decorator Class
Replies: 2
Views: 193

Re: Customize Decorator Class

Why not delegating to an handler function? # ============================================================================ # >> IMPORTS # ============================================================================ # Python Imports # Enum from enum import Enum # Source.Python Imports # Commands from ...
by L'In20Cible
Sun Oct 15, 2017 9:22 pm
Forum: General Discussion
Topic: [PROBLEM] Installing Source Python
Replies: 22
Views: 996

Re: [PROBLEM] Installing Source Python

Type sp info in your server console and paste the result here.
by L'In20Cible
Sun Oct 15, 2017 2:52 am
Forum: General Discussion
Topic: [PROBLEM] Installing Source Python
Replies: 22
Views: 996

Re: [PROBLEM] Installing Source Python

Please help me with a step for step guid or something. There is a guide on the wiki: http://wiki.sourcepython.com/general/installation.html [Update] it say now [source python] unable to retrive IVengingeserver interface. Failed to load addons/source-python Assuming you downloaded the correct versio...
by L'In20Cible
Sat Oct 14, 2017 10:17 pm
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 42
Views: 5214

Re: Parachute!

https://www.youtube.com/watch?v=BsoEbzSolXs&feature=youtu.be ⋅ Optimizations. ⋅ New mechanic: Steering lines! ⋅ New model for OrangeBox and CS:GO engines. ⋅ Cheap "scaling" animation to simulate the deployment of the parachute. ⋅ Parach...

Go to advanced search