March 19, 2019, 04:56:42 PM

Author Topic: I need some commands :P  (Read 2248 times)

Offline Hybrid_Theory

  • Level 7 Expert
  • *****
  • Posts: 231
  • Ditto.
I need some commands :P
« on: February 05, 2010, 12:46:04 AM »
Okay are there commands for body parts??? Like for arms, legs, body etc? Because Im making a skill that does diffrent things if you hit certain parts of the body... Like: Arm: Drop wep Leg: Slow Body: Push Head: Exp you know???

like: if (body code) then racealias_???

Want to see my works such us the ones above? Visit: http://warcraft-source.com/board/index.php/topic,9718.0.html and give me feedback

[SDD] Server

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: I need some commands :P
« Reply #1 on: February 05, 2010, 02:10:31 AM »
you just have to test out
Code: [Select]
if (event_var(hitgroup) == <hitgroup>) then racealias_
I do know 1 = head 2 = upper body [if that helps]
Just try different numbers and see like do this for testing.
Code: [Select]
if (event_var(hitgroup) == <hitgroup>) then es_tell event_var(attacker) You hit this hit groupTry like put in 3 hit each group then shoot till you find.
Hope that helps.

**EDIT**
Lol i ment put it in a eventscript like this.

Code: [Select]
event player_hurt
{
if (event_var(hitgroup) == <hitgroup>) then es_tell event_var(attacker) You hit this hit group
}
Then shoot a bot and change to find out each one.
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline AvasT

  • Brazilian
  • Level 7 Expert
  • *****
  • Posts: 1292
  • Country: 00
  • Slackline is not a Crime!
Re: I need some commands :P
« Reply #2 on: February 05, 2010, 02:20:26 AM »
event_var(hitgroup)
*Edit
Didn't saw Shidobu's post...




Quote
Never tell your password to anyone.
23:51 - MiB: Hi wife
23:51 - MiB: Imma slap you since you been naughty
23:51 - AvasT: Hi husband
23:51 - AvasT: Sure, on my ass
23:51 - MiB: Imma slap you with my big stick!
23:51 - AvasT: Ok
23:52 - MiB: *-*

Offline Hybrid_Theory

  • Level 7 Expert
  • *****
  • Posts: 231
  • Ditto.
Re: I need some commands :P
« Reply #3 on: February 05, 2010, 02:51:34 AM »
My computer is uber slow, and I cant go in and out like that, can someone else test it for me?

Want to see my works such us the ones above? Visit: http://warcraft-source.com/board/index.php/topic,9718.0.html and give me feedback

[SDD] Server

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: I need some commands :P
« Reply #4 on: February 05, 2010, 05:02:50 AM »
If you want ill test it for you tomorrow unless you already got someone to do it.
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline Hybrid_Theory

  • Level 7 Expert
  • *****
  • Posts: 231
  • Ditto.
Re: I need some commands :P
« Reply #5 on: February 05, 2010, 02:04:30 PM »
Pls do so thx

Want to see my works such us the ones above? Visit: http://warcraft-source.com/board/index.php/topic,9718.0.html and give me feedback

[SDD] Server

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: I need some commands :P
« Reply #6 on: February 05, 2010, 02:12:22 PM »
Ok ill post when im finshed.
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: I need some commands :P
« Reply #7 on: February 05, 2010, 02:30:09 PM »
Code: [Select]
// 1 = Head
// 2 = Upper Body/Chest
// 3 = Lower Body/Stomach
// 4 = Left Arm/Left Hand
// 5 = Right Arm/Right Hand
// 6 = Left Leg/Left Foot
// 7 = Right Leg/Right Foot

There you go
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline Hybrid_Theory

  • Level 7 Expert
  • *****
  • Posts: 231
  • Ditto.
Re: I need some commands :P
« Reply #8 on: February 05, 2010, 05:05:45 PM »
Thx xD

Want to see my works such us the ones above? Visit: http://warcraft-source.com/board/index.php/topic,9718.0.html and give me feedback

[SDD] Server

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: I need some commands :P
« Reply #9 on: February 05, 2010, 08:05:54 PM »
No problem.
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline AvasT

  • Brazilian
  • Level 7 Expert
  • *****
  • Posts: 1292
  • Country: 00
  • Slackline is not a Crime!
Re: I need some commands :P
« Reply #10 on: February 06, 2010, 12:18:39 AM »
This is in Eventscripts Wiki :)




Quote
Never tell your password to anyone.
23:51 - MiB: Hi wife
23:51 - MiB: Imma slap you since you been naughty
23:51 - AvasT: Hi husband
23:51 - AvasT: Sure, on my ass
23:51 - MiB: Imma slap you with my big stick!
23:51 - AvasT: Ok
23:52 - MiB: *-*

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: I need some commands :P
« Reply #11 on: February 06, 2010, 12:23:57 AM »
I know but last time i checked the picture wasnt working showing the hitgroups there.
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline Hybrid_Theory

  • Level 7 Expert
  • *****
  • Posts: 231
  • Ditto.
Re: I need some commands :P
« Reply #12 on: February 06, 2010, 01:47:34 AM »
Btw Shid, I heard u were managing clanless xD Btw, meet your new head admin :) Me!

Strawberry is owner correct?
« Last Edit: February 06, 2010, 01:52:22 AM by darkgrenchler »

Want to see my works such us the ones above? Visit: http://warcraft-source.com/board/index.php/topic,9718.0.html and give me feedback

[SDD] Server

Offline AvasT

  • Brazilian
  • Level 7 Expert
  • *****
  • Posts: 1292
  • Country: 00
  • Slackline is not a Crime!
Re: I need some commands :P
« Reply #13 on: February 06, 2010, 05:31:58 PM »
I know but last time i checked the picture wasnt working showing the hitgroups there.
I know xD, i looked at this page today, a few minutes ago and it wasn't working too :P




Quote
Never tell your password to anyone.
23:51 - MiB: Hi wife
23:51 - MiB: Imma slap you since you been naughty
23:51 - AvasT: Hi husband
23:51 - AvasT: Sure, on my ass
23:51 - MiB: Imma slap you with my big stick!
23:51 - AvasT: Ok
23:52 - MiB: *-*