AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rotate solid part of entity (https://forums.alliedmods.net/showthread.php?t=229511)

GuskiS 11-09-2013 06:48

Rotate solid part of entity
 
Is it possible to rotate solid entity not just the model which is attached to it?

EDIT: Or, how to make nonsolid entity with can be used in get_user_aiming?

MPNumB 11-10-2013 00:46

Re: Rotate solid part of entity
 
You can rotate any entity with pev_angles. However non-bsp models can be only a box (bsp model is when model string starts with "*"). But it still can rotate non the less.

In case of bsp model, you can set entity to SOLID_BSP, then check if aiming hits it, and then restore the pev_solid (however it will not work for all entities, for example with water it doesn't work, as far as I tested).

For entities what have models set from models/ folder, there was and probably still is a guide on how to detect is player aiming on it. Or was/is that some kind of plugin what explodes grenades when they are hit by the bullet, and you can check that code.


All times are GMT -4. The time now is 23:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.