onmodelcopyscript

O Ilusionista

Captain 100K
I found this command at an uTunnel's post: onmodelcopyscript
What it does? This would work as a onspawnscript for weapon model (since weapon models doesn't have a spawn per se)?
 
Looking at the source, I haven't found exactly what it does. but look at uTunnel's code, I found this code set at "onmodelcopyscript"

Code:
	void old = getlocalvar("old");
	void self = getlocalvar("self");
	changeentityproperty(self, "maxhealth", getentityproperty(old, "maxhealth"));
	changeentityproperty(self, "health", getentityproperty(old, "health"));
	changeentityproperty(self, "maxmp", getentityproperty(old, "maxmp"));
	changeentityproperty(self, "mp", getentityproperty(old, "mp"));

So, I think is:
self: Caller (the new model).
old: previous model.


btw, I know "dive", but I've found "dive1" and "dive2" at the source. What they do?
 
Back
Top Bottom