View Single Post
Plugin Info:     Modification:          Category:          Approver:   Brad (55)
Join Date: Oct 2007
Old 01-30-2008 , 14:37   Lie Flat (Nomexous)
Reply With Quote #1

Lie Flat (Nomexous)

Generally, when you drop an item on a sloped surface in CS, it doesn't lie flat. The game sets the object's pitch and roll as if it were always on a flat surface. Using this plugin, dropped items, grenades, and the bomb will now lie flat on the surface beneath them.

There are no console commands; simply add this plugin in your plugins.ini, and changelevel or restart your server.

I've only tested this in CS. It's possible to use it with other mods; however, you may need to change the classnames to suit your needs.

This plugin is short, but you wouldn't believe the amount of research it took to find the proper way to align objects to the ground. There were many other more complicated ways I tried that didn't work. If you include this code in your own plugin, please credit me.

Check out the screenshots below.
Attached Thumbnails
Click image for larger version

Name:	bomb.jpg
Views:	35004
Size:	17.7 KB
ID:	23244   Click image for larger version

Name:	weapons.jpg
Views:	42100
Size:	33.4 KB
ID:	23245   Click image for larger version

Name:	grenades.jpg
Views:	37725
Size:	23.4 KB
ID:	23246  
Attached Files
File Type: sma Get Plugin or Get Source (lie_flat.sma - 10326 views - 3.1 KB)

Last edited by Nomexous; 02-03-2008 at 11:31.
Nomexous is offline