Lugormod Building Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» misc_bsp help
lmd_event I_icon_minitimeThu Aug 25, 2022 5:30 pm by Shadow

» The Sith of Qarr
lmd_event I_icon_minitimeTue Mar 02, 2021 8:57 pm by Cor

» Admin Key/disable teleports
lmd_event I_icon_minitimeMon May 13, 2019 4:06 am by Pierry

» Some possibly useful addons
lmd_event I_icon_minitimeWed May 08, 2019 3:37 pm by Pierry

» Active lugormod servers
lmd_event I_icon_minitimeWed May 08, 2019 11:23 am by Pierry

» Quick links
lmd_event I_icon_minitimeWed May 08, 2019 11:12 am by Pierry

» Help with trigger_usescript
lmd_event I_icon_minitimeThu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
lmd_event I_icon_minitimeThu Sep 22, 2016 7:03 am by Ufo

» iobject terminal
lmd_event I_icon_minitimeThu Sep 25, 2014 2:39 pm by flanagon


lmd_event

5 posters

Go down

lmd_event Empty lmd_event

Post by Cor Fri Jan 20, 2012 1:15 pm

Hi,

I made a FFA area in which, when we kill another player, we get credits for it. It's actually working perfectly. When someone kills another player, he gets credits.
But, the problem is that you also get credits if you kill yourself by typing /kill :p

/place lmd_event 0 maxs,x x x,mins,-x -x -x,killtarget,killcr
/place target_credits 0 targetname,killcr,count,75
/place target_print 0 targetname,killcr,spawnflags,20,message,^3You received 75 credits for killing another player

Anybody can help?
Cor
Cor
Standard Member
Standard Member

Posts : 29
Join date : 2012-01-09

Back to top Go down

lmd_event Empty Re: lmd_event

Post by Zkyo Sat Jan 21, 2012 11:12 am

I've never used lmd_event before, since i always built in 2.3.2(?). I could be wrong, but i'm not seeing any way to avoid this, other than disabling the /kill command completely, which I have no idea how to do that either.
avatar
Zkyo
Admin
Admin

Posts : 384
Join date : 2010-03-29
Age : 30
Location : Grand Rapids, Michigan, USA

https://lugorhelp.forumotion.com

Back to top Go down

lmd_event Empty Re: lmd_event

Post by KHax Mon Jan 23, 2012 10:32 am

maybe a script could help like when you kill yourself you loose the ammount of cr you gain or maybe more as a punishment
KHax
KHax
Standard Member
Standard Member

Posts : 21
Join date : 2010-12-29
Age : 30
Location : Unknown

Back to top Go down

lmd_event Empty Re: lmd_event

Post by Soap94 Thu Nov 22, 2012 10:17 pm

I'm probably really late and Cor surely found out how to do it, but for other people who visit this forum and still don't know how, I'll explain:

Basically, all you have to do is making the lmd_event fire a playercheck, with a certain ammount of playerflags, that will be granted only if the player dies. This means that, if you don't have the flags, and kill another player, you'll get the CR and a message will be printed.2 But if you die, regardless if it's by somebody else or by suicide, nothing will happen (But you can add a print saying "You've lost the combat" if you want).

The codes are:

The lmd_event:

Code:
/place lmd_event 0 maxs,xx yy zz,mins,-xx -yy -zz,spawnflags,1,killtarget,arena_check,deathtarget,arena_flags

The playercheck:

Code:
/place lmd_playercheck * targetname,arena_check,target,arena_nothing,target2,arena_win,playerflags,1

NOTE: On target I used "arena_nothing" as its name because if you suicide, or in other words, if you have flags 1, nothing will happen, so you can't get credits by killing yourself many times.

The credits and message:

Code:
/place target_credits * targetname,arena_win,count,150
Code:
/place target_print * targetname,arena_win,spawnflags,20,message,You have won ^2150 CR ^7for defeating your opponent!

And finally, the flags

Code:
/place lmd_flagplayer * targetname,arena_flags,flags,1
Soap94
Soap94
New User
New User

Posts : 19
Join date : 2012-01-16
Age : 29
Location : Argentina

http://lugormod.org

Back to top Go down

lmd_event Empty Re: lmd_event

Post by Cor Fri Nov 23, 2012 3:14 am

Thanks a lot.
It might help in the future.
Cor
Cor
Standard Member
Standard Member

Posts : 29
Join date : 2012-01-09

Back to top Go down

lmd_event Empty Re: lmd_event

Post by Ufo Fri Nov 30, 2012 11:02 am

Cor wrote:But, the problem is that you also get credits if you kill yourself by typing /kill :p

It doesn't give cr, just the print triggers (stupid glitch).

Easiest way to fix it is assigning only credits' targetname to lmd_event's target, and then target_print's targetname to target_credits' target. No need any playechecks/flags or such.
Ufo
Ufo
New User
New User

Posts : 14
Join date : 2010-07-31

Back to top Go down

lmd_event Empty Re: lmd_event

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum