Raised This Month: $ Target: $400
 0% 

HEV Suit [Mark V]


Post New Thread Reply   
 
Thread Tools Display Modes
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 03-07-2010 , 07:47   Re: HEV Suit
Reply With Quote #11

Quote:
Originally Posted by Arkshine View Post
That's not like in HL, but it's a good start.
LANG_PLAYER is meant to be used when you pass 0 as player's id. If not 0, use the player's id.

eg :
client_print(victim, print_chat, "%L", LANG_PLAYER, "YOU_LOST")
-> client_print(victim, print_chat, "%L", victim, "YOU_LOST")




You know you have already that in HL. Just spawn item_suit and touch it.
it's work in single-player. don't work in multi-player.
Anggara_nothing is offline
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 03-07-2010 , 07:58   Re: HEV Suit
Reply With Quote #12

Nice 1 ;]
__________________
As soon as possible.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-07-2010 , 08:03   Re: HEV Suit
Reply With Quote #13

Quote:
it's work in single-player. don't work in multi-player.
The code is present in the MP HLSDK, it should work. I'm curious, I will try.
__________________
Arkshine is offline
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-07-2010 , 08:30   Re: HEV Suit
Reply With Quote #14

Quote:
Originally Posted by Arkshine View Post
That's not like in HL, but it's a good start.
LANG_PLAYER is meant to be used when you pass 0 as player's id. If not 0, use the player's id.

eg :
client_print(victim, print_chat, "%L", LANG_PLAYER, "YOU_LOST")
-> client_print(victim, print_chat, "%L", victim, "YOU_LOST")
Thanks! Updated plugin. See changelog.
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-07-2010 , 09:48   Re: HEV Suit
Reply With Quote #15

Quote:
Originally Posted by fR4gn0tiX! View Post
I tried with StatusIcon but didn't worked
1. use hamsandwich to catch dmg_bits
2. nice plugin! i don't lie, i like it alot! gg
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-07-2010 , 10:39   Re: HEV Suit
Reply With Quote #16

Quote:
Originally Posted by tuty View Post
use hamsandwich to catch dmg_bits
Quote:
Originally Posted by lazarev View Post
try to hook DMG_ACID in Ham_TakeDamage
^^
lazarev is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-07-2010 , 14:47   Re: HEV Suit
Reply With Quote #17

Quote:
Originally Posted by lazarev View Post
^^

ups
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-07-2010 , 15:02   Re: HEV Suit
Reply With Quote #18

I got problems with hamsandwich
And what's wrong with this method It works fine...
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-07-2010 , 15:13   Re: HEV Suit
Reply With Quote #19

Look how your hook_damage could be done:
Code:
public hook_damage( id ) {     new iDamage = read_data( 2 );         if( iDamage <= 0 )        return;         new iVictim = read_data( 0 );         if( hevsuit[ iVictim ] && hevsuitvoice[ iVictim ] )     {         if( get_user_health( iVictim ) < 25 )             client_cmd( iVictim, "spk fvox/health_critical" );         else             client_cmd( Victim, "spk fvox/%s_fracture", dmg >= 30 ? "major" : "minor" );     } }
__________________
xPaw is offline
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-07-2010 , 15:29   Re: HEV Suit
Reply With Quote #20

Quote:
Originally Posted by xPaw View Post
Look how your hook_damage could be done:
Code:
public hook_damage( id ) {     new iDamage = read_data( 2 );         if( iDamage <= 0 )        return;         new iVictim = read_data( 0 );         if( hevsuit[ iVictim ] && hevsuitvoice[ iVictim ] )     {         if( get_user_health( iVictim ) < 25 )             client_cmd( iVictim, "spk fvox/health_critical" );         else             client_cmd( Victim, "spk fvox/%s_fracture", dmg >= 30 ? "major" : "minor" );     } }
With that, it will say "minor/major fracture detected" each time player gets damage, even if he got damage from gun or knife. In Half Life 1, suit was telling that only at falldamage
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
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 01:52.


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