Crimsondeath
Active member
Hi again,
the weapons entities I use in my project have this property:
Which is working great, but there are types of attacks that use invisible hitboxes, or attacks that are ineffective against some entities, such as bullets that ricochet off Atlas's armor:
Atlas has the "nopain" property for the bullet attacktype, but his weapon still falls
.
I could use the property: weaploss 1 (weapon is lost only on knockdown hit), plus a script that makes it drop its weapon on onpainscript, something like this I thought:
onpainscript:
The problem is that when the script is executed, the weapon doesn't fall just "disappear":
Is there any way to make him drop the weapon? Or a script equivalent of "weaponframe" property
the weapons entities I use in my project have this property:
Code:
name Atlas6
type none
score 40000 5
shadow 5
weaploss 0 6 <---- weapon is lost and dropped on any hit.
weapnum 6
atchain 1
paingrab 1
knockdowncount 15
Which is working great, but there are types of attacks that use invisible hitboxes, or attacks that are ineffective against some entities, such as bullets that ricochet off Atlas's armor:
Atlas has the "nopain" property for the bullet attacktype, but his weapon still falls
I could use the property: weaploss 1 (weapon is lost only on knockdown hit), plus a script that makes it drop its weapon on onpainscript, something like this I thought:
onpainscript:
C++:
void main(){
// for atlas and robots semi inmune to bullets
changeentityproperty(getlocalvar("self"), "weapon", 0);
}
The problem is that when the script is executed, the weapon doesn't fall just "disappear":
Is there any way to make him drop the weapon? Or a script equivalent of "weaponframe" property
Last edited: