Raised This Month: $12 Target: $400
 3% 

Weapon-dependant gravity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Arkshine (91)
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-02-2012 , 15:59   Weapon-dependant gravity
Reply With Quote #1

Weapon-dependant gravity

This is probably the shortest and the most "codeless" plugin ever made. I didn't think it would be THIS easy when I got this idea, but well... it was. It's up to the approvers whether they'll approve these few lines of code or not.


Description
This plugin changes users gravity according to all the weapons they currently hold. The weight of weapons should be realistic, found the values on wikipedia . For example, if the user holds a M249, their gravity would be increased to somewhere around 120%. However, if they hold both Desert Eagle and M249, it will be 130% (just a guess). Tested, works well.

Cvars
None. If you got an idea for a cvar, drop it in this topic.

Changelog

0.1
  • Now counts all weapons in user's inventory
  • More optimized
  • Uses HamSandwich hooks instead of CurWeapon
  • Changed to work with flashbangs as well; other grenades are still counted as 1 though

Counter-Strike only

Attached Files
File Type: sma Get Plugin or Get Source (weapon_dependant_gravity.sma - 1567 views - 2.4 KB)
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 06-03-2012 at 07:34.
Backstabnoob is offline
 


Thread Tools
Display Modes

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 08:50.


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