mirror of
https://github.com/etlegacy/EasyGen.git
synced 2024-11-14 00:20:45 +00:00
52 lines
795 B
Text
52 lines
795 B
Text
|
// PX PY PZ - current point to modify
|
||
|
// MX MY - modifier position
|
||
|
// MH MR - modifier height and radius
|
||
|
// MINZ - min z value of the grid
|
||
|
// MAXZ - max z value of the grid
|
||
|
// PI - pigreco 3.14 etc etc
|
||
|
//
|
||
|
// NEWZ - when you want, load here the new value for Z
|
||
|
|
||
|
|
||
|
beginSETUP
|
||
|
// MODE 'Add' can be applied
|
||
|
fl_modeAdd = 1
|
||
|
|
||
|
// MODE 'Compare' can be applied
|
||
|
fl_modeCompare = 1
|
||
|
|
||
|
// MODE 'Force' can be applied
|
||
|
fl_modeForce = 1
|
||
|
|
||
|
// Computes points only within modifier square radius
|
||
|
fl_squareRadius = 0
|
||
|
|
||
|
// Computes points only within modifier radius
|
||
|
fl_Radius = 0
|
||
|
|
||
|
// Height can't never be negative
|
||
|
fl_positiveHeight = 0
|
||
|
endSETUP
|
||
|
|
||
|
|
||
|
|
||
|
beginCODE
|
||
|
|
||
|
mov dx,PX
|
||
|
sub dx,MX
|
||
|
abs dx
|
||
|
mov dy,PY
|
||
|
sub dy,MY
|
||
|
abs dy
|
||
|
mov d,dx
|
||
|
add d,dy
|
||
|
|
||
|
cmp d,MR
|
||
|
jle ok
|
||
|
abort
|
||
|
ok:
|
||
|
|
||
|
mov NEWZ,MH
|
||
|
|
||
|
endCODE
|