Raised This Month: $32 Target: $400
 8% 

[Native] Angle Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 17:52   [Native] Angle Speed
Reply With Quote #1

Angle Speed Native v1.1.0

Description
To use this natives we must use fakemeta/engine.

Natives
angle_get_speed(ent, Float:fAngleSpeed[3]) - Gets the angle speed vector.
angle_set_speed(ent, Float:fAngleSpeed[3]) - Sets the angle speed for entity.

Example:
I recored video on which i show how this work:
http://www.youtube.com/watch?v=T7chiP0IBfY

Changelog
1.0.0 - Initial Release
1.1.0 - Fixed method to change angles
Attached Files
File Type: inc angle_speed.inc (651 Bytes, 308 views)
File Type: sma Get Plugin or Get Source (native_test_angle_speed.sma - 929 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (native_angle_speed.sma - 952 views - 3.0 KB)
__________________
Sorry for my bad english !

Last edited by Owner123; 01-02-2011 at 06:48.
Owner123 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-31-2010 , 18:16   Re: [Native] Angle Speed
Reply With Quote #2

These have nothing to do with speed.
All these natives do is constantly set an entity's angles.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 21:07   Re: [Native] Angle Speed
Reply With Quote #3

Yes, this is simple native, but I think this can be usefull for newbie ;D
__________________
Sorry for my bad english !
Owner123 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-31-2010 , 23:30   Re: [Native] Angle Speed
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
These have nothing to do with speed.
Maybe you don't speak english . . .
__________________
fysiks is online now
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-01-2011 , 10:30   Re: [Native] Angle Speed
Reply With Quote #5

Don't you think altering entities nextthink can generate some issues with some entities ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owner123
Member
Join Date: Jun 2010
Old 01-01-2011 , 14:03   Re: [Native] Angle Speed
Reply With Quote #6

Damn ... I was mellow when i write this :S I will fix it in next version .
__________________
Sorry for my bad english !
Owner123 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-01-2011 , 16:02   Re: [Native] Angle Speed
Reply With Quote #7

Wow, this with the nade looks awesome!
Just in the test plugin:

PHP Code:
....|| equal(model"models/w_flashbang.mdl") || equal(model"models/w_flashbang.mdl"
->


PHP Code:
....|| equal(model"models/w_flashbang.mdl") || equal(model"models/w_smokegrenade.mdl"
?
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-01-2011 , 18:15   Re: [Native] Angle Speed
Reply With Quote #8

Test plugin doesn't really show what advantage you could take using the native in a plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-01-2011 , 18:54   Re: [Native] Angle Speed
Reply With Quote #9

Finally seeing what it does, it constantly rotates the entity based on the given angles.
I don't know why I couldn't figure that out the first time around.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Owner123
Member
Join Date: Jun 2010
Old 01-02-2011 , 06:45   Re: [Native] Angle Speed
Reply With Quote #10

@ConnorMcLeod
Thanks for the advice

@bubi
LOL, i cant see that at first time but now fixed

BTW. Next version is available
__________________
Sorry for my bad english !
Owner123 is offline
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 03:11.


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