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

MyPhysics v0.3.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Emp` (115)
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 03-01-2007 , 08:59   MyPhysics v0.3.1
Reply With Quote #1

Features (RUS):
  • unlocks sv_accelerate, sv_stopspeed & sv_friction restrictions to default values under CS/CZ
  • allows to customize fall damage & safe fall speed (you can make the game like in HLDM when mp_falldamage = 0) - this feature should override plugin No Fall Damage by v3x
  • adds damage on head bump (customizable)
  • adds damage to a player on what you've just falled: you can damage him or kill him & that frag will be counted (also customizable)
Requirements:
* any mod (preferably CS/CZ)
* AMX/X 1.7x or higher
* Fakemeta module

New cvars: ([CS] means cvar is available under CS/CZ mod only)
* [CS] my_accelerate <float> (default=10)
overrides sv_accelerate value;
0 - turn off (use original gameplay restricted value)
5 - turn off also (read the note section below)
* [CS] my_stopspeed <float> (default=100)
overrides sv_stopspeed value;
0 - turn off (use original gameplay restricted value)
75 - turn off also (read the note section below)
* [CS] my_friction <float> (default=4)
overrides sv_stopspeed value;
0 - turn off (use original gameplay restricted value)
4 - turn off also (read the note section below)
* my_falldamage <num> (default=10)
0 - no damage at all
-1 - off (default gameplay rules)
* my_safefallspeed <num> (default=580)
* my_raisedamage <num> (default=5)
* my_saferaisespeed <num> (default=190)
* my_fallimpulse <float> (default=1.0)
1.0 - make the player below the same damage as falldamage
(true physics)
0.5 - make the half of falldamage
10.0 - make 10x more of falldamage (if max_health is 100 &
my_falldamage is 10, it will kill any player below)
0.0 - turn impulse damage off
* [CS] my_maxspeed <float> (default=-1)
sets constant player's maxspeed no matter what weapon type is used;
applied on game start & when player has changed his weapon during
the game
-1 - turn off (use original gameplay algorithm)

Notes:
  • when working with my_accelerate, my_stopspeed & my_friction
    you must understand that if you init them with default gameplay
    values it's assumed like you disable custom values
    (e.g. 'my_accelerate 5' and 'my_accelerate 0' are identical).
    You can't set back custom value just by changing my_ cvar only cause
    you must set appropriate sv_ cvar to ANY non-standard value to trigger
    unlock (i.e. set my_accelerate to 10 first, then set sv_accelerate
    to any value, except 5. After that any changing of my_accelerate will
    trigger sv_accelerate to synchronize its value until you set
    my_accelerate to 0 or 5). You can freely set custom values directly
    via sv_ cvars (they won'e be reseted) after you've set custom value
    like decribed above but my_ values won't be synchronized in this case.
    So you see that they are used as initial values mostly. Thus i recommed
    you set custom values via my_ cvars only.
  • side effect of unlocking physics cvars is occurrence of bunny jump
TODO:
* consider helmet presence on head bump (under CS/CZ only)
* make 'my_fallimpulse' to work when my_falldamage is -1

Credits:
* VEN for couple of fakemeta_util functions
* KRoT@L for his AMX NoBuy - Fall Damage plugin which was a starting
point for my plugin

History:
0.3.1 [2007-03-04]
! fixed half-broken implementation of unlocking cvars
+ added a huge description on how to work with unlocking cvars
! fallimpulse damage now considers mp_friendlyfire value
! fallimpulse kill scoring now considers teamplay rules
+ added 'my_maxspeed' cvar
... (see .sma file for full changelog)
Attached Files
File Type: sma Get Plugin or Get Source (myphysics.sma - 3087 views - 20.3 KB)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 01-24-2008 at 09:10. Reason: updated to 0.3.1
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-01-2007 , 09:35   Re: MyPhysics v0.3.0
Reply With Quote #2

Looks great. Nicely done. Only thing I can suggest is that you change
Code:
public cmdFullupdate()
{
	// just block this command to block ResetHUD msg on client request
	return PLUGIN_HANDLED
}
to
Code:
return PLUGIN_HANDLED_MAIN
so it just blocks it for your plugin.

Will approve in 1 day. Letting people see it in New Submissions.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Skissors
Senior Member
Join Date: Jan 2007
Location: Due East of my backyard
Old 03-01-2007 , 11:50   Re: MyPhysics v0.3.0
Reply With Quote #3

amazing plugin, tested and it worked
__________________
-Karma if you read this post
current karma i lost track but its less than -70
please leave your name, I wont be offended.

IM BACK
Skissors is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 03-03-2007 , 19:05   Re: MyPhysics v0.3.1
Reply With Quote #4

Updated to 0.3.1.

Those who has downloaded 0.3.0 strongly recommend to update. Now you can make exactly the same physics as it was in HLDM =)

Changelog:
! fixed half-broken implementation of unlocking cvars
+ added a huge description on how to work with unlocking cvars
! fallimpulse damage now considers mp_friendlyfire value
! fallimpulse kill scoring now considers teamplay rules
+ added 'my_maxspeed' cvar

Emp`, thanx for approvement. Your code sample was considered, tested & implemented ;)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 03-03-2007 at 20:30.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 11-20-2007 , 07:15   Re: MyPhysics v0.3.1
Reply With Quote #5

2connorr (may be interesting to others): yep, i'm gonna to update this plugin to support HS module, cause i need an appropriate log for PsychoStats on fall kill but HLDM will not be supported then.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 11-25-2008 , 07:13   Re: MyPhysics v0.3.1
Reply With Quote #6

Can someone explain those cvars, tried tweaking them to get less damage from jumping for my hns servers, however no luck so far.

* my_safefallspeed <num> (default=580)
* my_raisedamage <num> (default=5)
* my_saferaisespeed <num> (default=190)
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-02-2008 , 15:12   Re: MyPhysics v0.3.1
Reply With Quote #7

my_safefallspeed means player's max downward z-velocity exceeding which the my_falldamage damage is guaranteed on landing.

my_saferaisespeed is almost the same but for head bumping on ceiling i.e. upward z-velocity is considered (damage quantity is taken from my_raisedamage cvar in this case).
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 12-03-2008 , 03:41   Re: MyPhysics v0.3.1
Reply With Quote #8

Thanks Simon, any chance to "* make 'my_fallimpulse' to work when my_falldamage is -1" anytime soon ?

It is awesome for Hide'n'Seek servers! Also please take a look at this idea http://forums.alliedmods.net/showthread.php?t=80327, I think you have the needed skills to code it.
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Reply


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 12:28.


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