![]() |
Playerkills???
Hello,
okay, i've search the old upfated commands for GS1 and then the WIKI nothing, Is therea command when the playerkills a opponet, e.g. another player or a attcking NPC??? :\ |
No, closest thing you have is 'playerdies.'
Which isn't very helpful, since the person who killed you isn't communicated. :/ |
I know T_T, Well they should create a command for that for GS2. Like
playerslays(); and side the paranthses should be the type of enemy or just they any. |
That would be a really good idea.
PHP Code:
|
yea and just leave it blank if ya dont want nothing there, that's a really good idea ^^
|
What I would do is put a flag in the client (client.lasthitby) and if the player is hit 1 more time then the person who hit them last would get credit for the kill, I put this in the projectile
|
There's no way to tell who hit you last, unless it's with a projectile.
|
Quote:
Hm, not too sure but isn't 'if (wash*t)' fully functional? |
here ill help you (this is the projectile part)
NPC Code: |
... You make me frown.
We're talking about regular hearts. Arrows, explosions, swords, NPCs doing damage. Not projectiles. |
o_o oh..
XD |
lol, well, hopefully stefan will make that command
|
just handle the s key, and send a triggeraction at playerx+2*vecx(playerdir), playery+2*vecy(playerdir) with the account name as a parameter.
|
Quote:
There is probably a better way to go about doing this, but it hardly makes sense to make it more complicated with triggeractions. |
Quote:
|
Quote:
|
Or, Why don't they just add a playerslays() command? XD Much simpler.
|
Quote:
The range of places your sword can hit is too wide, so a triggeraction isn't very safe. It could trigger on someone you didn't hit, or the person could lag and they might not catch the trigger due to the knockback. The closest thing I was able to get was a for() loop which checks for a nearby players with the 'sword' gani. |
But, what if they slay a NPC or players with bombs arrows Etc (custom weapons)
|
Quote:
The best solution would probably be to write your own battle system :cool: |
I'm not that good of a scripter to do that T-T
|
Quote:
|
Quote:
|
z-z Naw, a few people looked into it with a memory viewer. These people found a list of functions, default GUI controls, ect.
They didn't find anything about hit peoples. :( |
Ii sent a forum pm to stefan about this
|
Yet, He seems not to reply. WHAA, Stefan doesn't like me. T-T :P :D
|
Quote:
|
No, he hate's me. :P
|
| All times are GMT +2. The time now is 04:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.