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

hl_weapon_physics


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Turanga_Leela
Junior Member
Join Date: Nov 2010
Old 09-01-2012 , 08:32   hl_weapon_physics
Reply With Quote #1

HL Weapon Physics

Autor: Turanga_Leela

Version: v0.6 [23.07.2012]

Description
Quote:
For Mods: hl / cs / csz
Add physics in to the game. Tested on win7 & linux

Attention - All plugin options in - *.inc
When plugin start 1st time - config file will be added automatically (addons/amxmodx/configs/hl_weapon_physics.ini). In it blocked classes list (1 class only! for 1 config line, for cs/csz auto add "grenade")
Cvars
Quote:
hl_ArmouryEntityCount - 1 // cs/csz : ent's count in - "armoury_entity"
hl_PhysicsDefaultGravity - 2.0 // default gravity (can be different)
hl_ThrowSpeedMultiple - 13 // speed multiple on throw... -> + "e" button
Macros
Quote:
#define Half_Life // hl || cs/csz (game switch)

#define BREAKABLE_REFLECT // "func_breakable" breakable reflect on players & monsters
#define PUSH_MONSTERS // push & damage

#define ADMIN_FLAGS ADMIN_IMMUNITY //admin flags - menu access "armoury_entity" - (ADMIN_IMMUNITY | ADMIN_BAN) ...

#define SOUNDS_ON // ...
#define WEAPON_THROWING_ON // Throwings ON (RECOMMENDED! )
#define SPRITE "sprites/arrow1.spr" // sprite - WEAPON_THROWING_ON
#define TRAILS_ON // trails on WP throw (+e)

Options bellow -> only for CS / CSZ

#define zBot_on_server // ON - if zBot on server (works on "cs/csz" ONLY!) plugin needed - "hamsandwich_zBot_FIX" (if need - ask me)
#define CLCMD_COMMAND "hl_WeaponPhysics_Menu" // clcmd - menu call

#define ARMOURY_ENTITY_RANDOMIZER // ...
#define PHYSICS_RENDERING // ...
#define SHOOT_GRENADES_ON // Cs/Csz
#define MESSAGE_ON // chat message, when grenade exploded by shot. Cs - Csz Only! (shoot grenades)
Const
Quote:
#define VECTOR_SUB 2.5 // vector[2] sub - on ground check
#define SEARCHING_RADIUS 5.0 // physics ent's searching radius
#define MAX_REFLECT_A_VELOCITY 192.0 // [0] && [2]
#define MAX_VELOCITY_MULTIPLE 2.5 // speed multiple [0] && [1] on dmg taken, if entity on angled ground!
#define MAX_DAMAGE_RECEIVED 255.0
#define AVAILABLE_MOVETYPE (1 << MOVETYPE_TOSS) // can be - (1 << MOVETYPE_TOSS | 1 << MOVETYPE_FLY) ...
#define MAX_REFLECT_VELOCITY 192.0 // max vel[2] jump power
#define DAMAGE_DIVIDER 0.032 // dmg multiple by shot
#define SOUND_HIT 0.5 // hit volume
#define SOUND_TOUCH 0.25 // touch volume
#define GROUND_TRACE_RESULT 0.65 // ground_trace[2] - high angle ground type
#define BLOCK_SOUND_BY_SPEED 128.0 // min speed to emit sound on touch

#define COUNTS_TO_RESET 6 // touch counts to -> hl_extensions (physics reflect)

#define PEV_DATA_SLOT pev_iuser2 // hl_extensions -> data, contain touch counts
#define PEV_GROUND_TYPE pev_iuser3 // ground type info -> '4' values, look -> // Ground type
#define PEV_JUMP_REDUCE pev_iuser4 // add velocity or not, depend from: 1)ground type 2)attacker
#define PEV_GROUND_DATA pev_vuser3 // entity ground data - contain ground trace result -> TR_vecPlaneNormal
Utube - http://www.youtube.com/watch?v=ZIV7Ukq7QqQ

PS
Special thanks: unnamed, for support. And noo00oob & Vlamis bug test
Code & idea taken from "Weapon Physics" и "Lie Flat" by "Nomexous" (now 2 in 1 for hl & cstrike/csz)
Attached Files
File Type: zip files.zip (150.9 KB, 1298 views)
File Type: zip sources.zip (14.3 KB, 1304 views)
Turanga_Leela is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 09-07-2012 , 02:21   Re: hl_weapon_physics
Reply With Quote #2

Cool! Can you add natives to allow scripters to set physycal to new entitys?
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Turanga_Leela
Junior Member
Join Date: Nov 2010
Old 09-07-2012 , 11:47   Re: hl_weapon_physics
Reply With Quote #3

Quote:
Originally Posted by bogdyuttzu View Post
Cool! Can you add natives to allow scripters to set physycal to new entitys?
plug - auto catch ent's, mb condition change a little ?
Turanga_Leela is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-07-2012 , 15:02   Re: hl_weapon_physics
Reply With Quote #4

Good job!
__________________
kiki33hun is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 09-08-2012 , 01:31   Re: hl_weapon_physics
Reply With Quote #5

Errors in console on somemaps(like zm_dust2)

Code:
09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
 09/08/2012 - 08:29:14: Invalid trie handle provided (2)
 09/08/2012 - 08:29:14: [AMXX] Displaying debug trace (plugin "hl_weapon_physics.amxx")
 09/08/2012 - 08:29:14: [AMXX] Run time error 10: native error (native "TrieSetArray")
 09/08/2012 - 08:29:14: [AMXX] [0] hl_weapon_physics.sma::Armoury_Entity_Spawn_Post (line 642)
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 09-08-2012 , 06:34   Re: hl_weapon_physics
Reply With Quote #6

which amxx you are using?
you need 1.8.2 for this
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Turanga_Leela
Junior Member
Join Date: Nov 2010
Old 09-08-2012 , 08:20   Re: hl_weapon_physics
Reply With Quote #7

bogdyuttzu
Post results pls, when amxmodx & metamod will be updated
I tested, and all was OK ...

Last edited by Turanga_Leela; 09-08-2012 at 08:20.
Turanga_Leela is offline
alexclaudiu2003
Senior Member
Join Date: Aug 2011
Location: Romania
Old 09-19-2012 , 03:54   Re: hl_weapon_physics
Reply With Quote #8

please remove C4 from shoot

Last edited by alexclaudiu2003; 09-19-2012 at 03:55.
alexclaudiu2003 is offline
Anybody Know
Junior Member
Join Date: Sep 2012
Old 09-19-2012 , 06:50   Re: hl_weapon_physics
Reply With Quote #9

Quote:
Add physics in to the game.
Short description... Can you describe more about plugin ?
__________________
Anybody Know is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 09-19-2012 , 14:36   Re: hl_weapon_physics
Reply With Quote #10

Quote:
Originally Posted by Anybody Know View Post
Short description... Can you describe more about plugin ?
Read the tittle - "HL Weapon Physics" !!!
gogicaa is offline
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 11:30.


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