Creating solid entity [CS:GO]
Hi, i have some problems with adding a solid entity.
I have this code: Code:
public Action Build(int client, const char[] command, int argc) { I try to use all values for solid type Code:
enum SolidType_t Code:
enum Collision_Group_t |
Re: Creating solid entity [CS:GO]
Try SOLID_BSP with COLLISION_GROUP_INTERACTIVE
|
Re: Creating solid entity [CS:GO]
Does the model have a proper physics box?
|
Re: Creating solid entity [CS:GO]
Quote:
https://d.radikal.ru/d05/1909/45/f7618016973d.png |
Re: Creating solid entity [CS:GO]
Quote:
I noticed a strange thing that when I shoot not in the model, the callback OnTakeDamage still works, it stops only when I start shooting on the other side of the map, probably collision group is wrong May be wrong order (SetEntProp before DispatchSpawn or opposite), is it important? |
Re: Creating solid entity [CS:GO]
Quote:
PHP Code:
|
Re: Creating solid entity [CS:GO]
i try to use "Christmas tree" model from shared plugin and all works good, i cant move through the tree, dont understand why it's not working with my models, they have physics files too.
I notices one thing, when i walk through my model, my speed slows down and when i jumping on my model, i hear the sound of model material, but falls into it, i think physics file is bad, i opened this file in blender and all seems good :/ https://b.radikal.ru/b14/1909/60/aff4a0e645d9.png UPDATE: i input a command "vcollide_wireframe 1" in the game, that to view collision meshes, and i saw, that my model doesnt have meshes xd, how it's possible, i dont know |
Re: Creating solid entity [CS:GO]
Wait. U need to dispatch spawn before changing netprops.
|
Re: Creating solid entity [CS:GO]
this code works good for Christmas tree model:
Code:
public Action Build(int client, const char[] command, int argc) { |
All times are GMT -4. The time now is 03:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.