[CSGO] Force Velocity on Entity
So i have this Entity that i want to move by velocity
This is how i create it: Code:
int ent = CreateEntityByName("prop_dynamic_override"); Code:
stock void MoveEntity(int ent, int ent2, float speed){ PS. changing Prop_Data to Prop_Send only gives me this (Same for all m_vecs): Code:
Exception reported: Property "m_vecAbsVelocity" not found (entity 88/ghoul) |
Re: [CSGO] Force Velocity on Entity
try change "prop_dynamic_override" to "prop_physics_override", I don't think you can teleport prop_dynamics by velocity, only by origin.
|
Re: [CSGO] Force Velocity on Entity
Still the same :/
I even tried this: https://forums.alliedmods.net/showthread.php?p=1899572 But the console says Code:
ERROR!: Can't create physics object for models/witchermod/ghoul/ghoul.mdl |
Re: [CSGO] Force Velocity on Entity
Try spawn a prop that works with prop_physics like a dropped C4 and make it invisible, then parent your ghoul prop onto the C4 and teleport your C4 instead of your ghoul, this is what I do here:
https://github.com/Rachnus/SuperHero...jgohan.sp#L212 I create a prop_physics with the model "models/weapons/w_ied_dropped.mdl" then parent the env_sprite to it. And the result looks like this: https://www.youtube.com/watch?v=HKy_1t4fp_Q |
Re: [CSGO] Force Velocity on Entity
or just spawn it as a prop_physics_override.
|
Re: [CSGO] Force Velocity on Entity
Quote:
1. There is a sound of C4 "moving" 2. When they fall from the edge there is a chance they flip over so we can see only feet of ghouls :D 3. Now my angleEntity function doesnt work, tried it on ghoul and C4 parent(and both), no results. I Code:
stock void AngleEntity(int ent, int ent2){ And the problem 3 maybe could be solved by putting other model insted of C4 that can handle both angles and velocity? I'd glady recive any kind of help from you |
Re: [CSGO] Force Velocity on Entity
Hmm, I mean the best solution would be to have someone make your model compatible with prop_physics (I have no clue how to do this)
But... To fix your second error, if you're passing NULL_VECTOR into the angle parameter in TeleportEntity, replace it with whatever angle you want your ghoul to have. If you are passing an angle, just keep setting angle[0] to 0.0 to keep it up straight. You could also try change model from C4 to a barrel or something that has the same size as your ghoul. If you want to add me, feel free. |
Re: [CSGO] Force Velocity on Entity
After experimenting with models and all:
Solution: Insted of prop_physics for parent i used generic_actor. Its perfect - doesn't fall off, it can be angled, no sounds, its even solid etc. Thanks @Rachnus :D |
All times are GMT -4. The time now is 10:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.