Copyright 2011 Cstrike-ManiaCs. Powered by Blogger.
RSS

Weapon-dependant gravity

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 :D. 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 - 2.4 KB)

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comments:

Post a Comment

google-site-verification: google5f70f6edf33e1bcf.html