Raised This Month: $ Target: $400
 0% 

Rotate solid part of entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 11-09-2013 , 06:48   Rotate solid part of entity
Reply With Quote #1

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?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 11-09-2013 at 14:12.
GuskiS is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-10-2013 , 00:46   Re: Rotate solid part of entity
Reply With Quote #2

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.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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