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

Lie Flat (Nomexous)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Brad (55)
Nomexous
Member
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:	37225
Size:	17.7 KB
ID:	23244   Click image for larger version

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

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

Last edited by Nomexous; 02-03-2008 at 11:31.
Nomexous is offline
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 14:46   Re: Lie Flat (Nomexous)
Reply With Quote #2

Wow, very nice plugin! I never noticed that before.
__________________
#Team !иکдиІтy
>)SL(< | Wicked is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 01-30-2008 , 14:46   Re: Lie Flat (Nomexous)
Reply With Quote #3

Cool thing. Gj
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-30-2008 , 17:05   Re: Lie Flat (Nomexous)
Reply With Quote #4

That is pretty cool. Nice job!
__________________
Brad is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2008 , 17:48   Re: Lie Flat (Nomexous)
Reply With Quote #5

Gj
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Nomexous
Member
Join Date: Oct 2007
Old 01-30-2008 , 18:59   Re: Lie Flat (Nomexous)
Reply With Quote #6

In order to make this less CS specific, please suggest other class names that should lie flat when touching the floor. I think in most mods, dropped weapons have the "weaponbox" class name, so those are covered. But there may be extraneous items that aren't accounted for.
Nomexous is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2008 , 19:03   Re: Lie Flat (Nomexous)
Reply With Quote #7

May be a good thing would be to read classnames from a .ini file ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-30-2008 , 19:07   Re: Lie Flat (Nomexous)
Reply With Quote #8

So this just effects the models not the actual hitbox? cause I don't see size changes...
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Nomexous
Member
Join Date: Oct 2007
Old 01-30-2008 , 20:25   Re: Lie Flat (Nomexous)
Reply With Quote #9

Quote:
Originally Posted by connorr View Post
May be a good thing would be to read classnames from a .ini file ?
It'll be faster if you don't have to read from an .ini file. Besides, once we get a list of class names from all mods, it won't change very much.
Quote:
Originally Posted by vittu View Post
So this just effects the models not the actual hitbox? cause I don't see size changes...
It just rotates the models, no size changes. I'm not sure about the hitboxes, but I don't know why you'd be worried about hitboxes on a dropped item.
Nomexous is offline
coca-cola
BANNED
Join Date: Dec 2007
Location: I got caught by Roach be
Old 01-30-2008 , 21:07   Re: Lie Flat (Nomexous)
Reply With Quote #10

does it work with a dead person too?
coca-cola 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 07:05.


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