Mapping help

Alcolo Oasis

Veteran Admin
VIP
Oct 15, 2016
685
2,970
1,550
29
France
Hello Unlozers,
I'm working on a new version of my mg map but I need some help.
I want to enable knife damage and have fall damage disable. On the first release of the map, I put a filter_damage_type with the following parameters :
Name : disable_damage
Filter mode : Allow entities that match criteria
Damage type : CRUSH
With this entity, I disable all the damage (guns, knife and fall. I need it for some levels like soccer, icehockey, etc). However, I'm now creating an iceskate level but I want to enable only guns and knife damage. If I kill my disable_damage entity, obviously it doesn't work (fall damage is enabled). So I created another filter_damage_type with :
Name : disable_fall_damage
Filter mode : Allow entities that match criteria
Damage type : FALL
So I tested that with killing the disable_damage (so there's only the disable_fall_damage) but it didn't work. I also tried with Disallow entities but still nothing.
I hope you understood me and you can help me :D

PS : To resume, I simply want 1 filter_damage_type for disable "normal" damage (gun and knife) and another one to disable fall damage.
 
Last edited:
To make no fall damage use:
Filter_damage_type
Name = <insert entity name here>
FALL
Disallow entity that match criteria

Outputs on a trigger:
OnStartTouch !activator SetDamageFilter <insert the name of your filter>

It will make the player filtered against fall damage thanks to the "Disallow entity that match criteria"
Because it make the player damagable (is that a word?) by anything but FALL damage
 
@Moltard did a pretty damm good explanation to you, but if it's not enough, i would imagine that one or more of the mapper would gladly help you out with it. (not take my word on it).
 
There is two ways of doing it.

Filter -> FALL
Mode -> Allow entities that match criteria
Result -> Everything but FALL damage will damage the player you apply it on
Result -> Only FALL damage will damage the player you apply it on

Filter -> FALL
Mode -> Disallow entities that match criteria
Result -> Only FALL damage will damage the player you apply it on
Result -> Everything but FALL damage will damage the player you apply it on

But its pretty much what moltard already explained, i just felt like explaining it alittle more indepth :P
 
Last edited by a moderator:
  • Like
Reactions: Radiothere and jenz

About us

  • UNLOZE was created on June 16th, 2015.
    The community is being managed by jenz and tb.
    UNLOZE is currently centered around Counter-Strike: Source.

    Hope you enjoy the forums!
01110110 01110101 00100000 01101011 01101000 01100110 00100000 00110111 00101100 00100000 01110110 01110101 01101100 00100000 01110110 01101101 00100000 01110110 01100010 01111001 00100000 01110110 01100100 01110101 00100000 01100100 01110000 01110011 01110011 00100000 01101110 01110000 01100011 01101100 00100000 01100110 01110110 01100010 00100000 01100001 01101111 01101100 00100000 01110101 01101100 01100101 01100001 00100000 01101000 01110101 01111010 01100100 01101100 01111001 00100000 01100110 01110110 01100010 00100000 01111010 01101100 01101100 01110010 00101110

Quick Navigation

User Menu