The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to disable hitting specific body parts?
Author Message
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #7
RE: How to disable hitting specific body parts?
(02-05-2017 11:57 PM)Snaigel Wrote:  
Quote:EDIT: Ok I've figured it out. I set <argn2> under both @hit and @gethit to 80 (which is dam_general) and it works as I wanted.

What did you write exactly? and you mean in the @hit of the weapons or where?

Quote:There's also a local managing which part of the body is being hit inside the @Hit trigger.

Where can I find that local??

@Hit and @GetHit are character triggers.

So for his solution is, he add his global event;

Code:
On=@Hit
ARGN2=80

On=@GetHit
ARGN2=80

I do not know if you have any global event, but you can add new one from Sphere.ini, there is a section EventPlayer=

If you enable it you can add e_player or any other event to there, or under your skillclass 0 (which can be found inside sphere_skills.scp)

Code:
On=@Login
IF !(<ISEVENT.e_player_event>)
  EVENTS +e_player_event
ENDIF

[Events e_player_event]
On=@Hit
ARGN2=80

On=@GetHit
ARGN2=80
02-06-2017 06:03 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to disable hitting specific body parts? - xwerswoodx - 02-06-2017 06:03 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)