krs
12-16-2010, 06:10 PM
I want to have as many Grimm Crossing like teleports as I want, and them to be team specific. Somehow creating a new teleport entity file and changing only target name makes only one tp work. Is there something more to be changed in the script?
Hellbourne_teleporter_2.entity
<?xml version="1.0" encoding="UTF-8"?>
<gadget
name="Teleport_Hellbourne_Gadget"
icon="icon.tga"
portrait="icon.tga"
model="/shared/models/invis.mdf"
skin=""
passiveeffect="/world/props/druidStatue_effects/effects/evil.effect"
spawneffect=""
respawneffect=""
selectsound=""
orderconfirmedsound=""
preglobalscale="1"
modelscale="1"
effectscale="1"
boundsheight="128"
boundsradius="16"
selectionradius="64"
targetoffset="0 0 64"
maxhealth="0"
nothreat="true"
invulnerable="true"
hoveronmap="false"
prefertouch="true"
immunity="GadgetImmunity"
attacktype="none"
combattype="Ranged"
unittype="HellbourneTeleporter"
alwaystargetable="true"
alwaystransmitdata="true"
alwaysvisible="true"
>
<ontouched>
<condition test="not_hasstate State_Teleport_GrimmCrossroads">
<condition test="this_proxy_entity eq 0">
<pushentitybyname name="Hellbourne_Teleporter_2" />
<setproxy entity="this_entity" target="stack_entity" />
<applystate name="State_Teleport_Stun_Grimm_Bad" duration="500" target="target_entity" proxy="this_proxy_entity" />
</condition>
<else>
<applystate name="State_Teleport_Stun_Grimm_Bad" duration="500" target="target_entity" proxy="this_proxy_entity" />
</else>
</condition>
</ontouched>
</gadget>
State_Teleport_Stun_Grimm_Bad.entity
<?xml version="1.0" encoding="UTF-8"?>
<state
name="State_Teleport_Stun_Grimm_Bad"
ishidden="true"
stunned="true"
impactinterval="500"
impacteffect=""
passiveeffect="teleport_effects/red_teleport.effect"
>
<onimpact>
<teleport source="this_owner_entity" target="this_proxy_position" interpolate="false" positionmodifier="pointpastline" positionvalue="170" positionorigin="this_inflictor_entity" />
<applystate name="State_Teleport_GrimmCrossroads" duration="10000" target="this_owner_entity" />
</onimpact>
</state>
Hellbourne_teleporter_2.entity
<?xml version="1.0" encoding="UTF-8"?>
<gadget
name="Teleport_Hellbourne_Gadget"
icon="icon.tga"
portrait="icon.tga"
model="/shared/models/invis.mdf"
skin=""
passiveeffect="/world/props/druidStatue_effects/effects/evil.effect"
spawneffect=""
respawneffect=""
selectsound=""
orderconfirmedsound=""
preglobalscale="1"
modelscale="1"
effectscale="1"
boundsheight="128"
boundsradius="16"
selectionradius="64"
targetoffset="0 0 64"
maxhealth="0"
nothreat="true"
invulnerable="true"
hoveronmap="false"
prefertouch="true"
immunity="GadgetImmunity"
attacktype="none"
combattype="Ranged"
unittype="HellbourneTeleporter"
alwaystargetable="true"
alwaystransmitdata="true"
alwaysvisible="true"
>
<ontouched>
<condition test="not_hasstate State_Teleport_GrimmCrossroads">
<condition test="this_proxy_entity eq 0">
<pushentitybyname name="Hellbourne_Teleporter_2" />
<setproxy entity="this_entity" target="stack_entity" />
<applystate name="State_Teleport_Stun_Grimm_Bad" duration="500" target="target_entity" proxy="this_proxy_entity" />
</condition>
<else>
<applystate name="State_Teleport_Stun_Grimm_Bad" duration="500" target="target_entity" proxy="this_proxy_entity" />
</else>
</condition>
</ontouched>
</gadget>
State_Teleport_Stun_Grimm_Bad.entity
<?xml version="1.0" encoding="UTF-8"?>
<state
name="State_Teleport_Stun_Grimm_Bad"
ishidden="true"
stunned="true"
impactinterval="500"
impacteffect=""
passiveeffect="teleport_effects/red_teleport.effect"
>
<onimpact>
<teleport source="this_owner_entity" target="this_proxy_position" interpolate="false" positionmodifier="pointpastline" positionvalue="170" positionorigin="this_inflictor_entity" />
<applystate name="State_Teleport_GrimmCrossroads" duration="10000" target="this_owner_entity" />
</onimpact>
</state>