Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Skilltarget used for synched damage?
Skilltarget used for synched damage?
2004-01-30, 5:25 PM #1
There's this system I use where you damage someone on touch.

The way it works is I have a sendtrigger in the touched: message that defines who gives the damage, who takes the damage, and how much damage is dealt, each as params.

...So I was fiddling around in Datamaster and I wondered - is there any possible way I could do this with SkillTarget?

------------------
Quote:
<font face="Verdana, Arial" size="2">Originally posted by DrkJedi82:
thanks for the all your <3 are belong to somebody set up us the 1337 swank OWNED
</font>
2004-01-30, 6:28 PM #2
My touched: message is as follows:
Code:
touched:
sender=getsenderref(); //what was touched
source=getsourceref(); //what touched it

//printflex(getcurweaponmode(source));

if(getcurweaponmode(source) > -1 && getcurweaponmode(source) < 1)
{ 
  damagething(sender, 15, 0x2, source);
}
return;


...When I touch something while firing it kills ME, and the thing I touch is unharmed.

Please, for God's sake tell me it's a simple error and I'm just overlooking something obvious.

------------------
Quote:
<font face="Verdana, Arial" size="2">Originally posted by DrkJedi82:
thanks for the all your <3 are belong to somebody set up us the 1337 swank OWNED
</font>
2004-01-31, 6:29 PM #3
Maybe it's returning you as the sender instead of the other dude? I'm taking a guess.

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team
May the mass times acceleration be with you.
2004-02-01, 6:20 AM #4
Darth Slaw could be right [http://forums.massassi.net/html/smile.gif] - is the "touched" message in your player's cog or an actor's class cog, because the nature of sender and source will be different depending on who/what sends the message (obviously [http://forums.massassi.net/html/wink.gif]).

Unfortunately, I know what I mean to say (and the idea I've got in my head) but I'm failing to express it due to fatigue [http://forums.massassi.net/html/frown.gif]. I'll post back when I can phrase the point I'm trying to get across properly... [http://forums.massassi.net/html/redface.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||

↑ Up to the top!