Page 1 of 1

What's the Save And Load Position Code? For CoD4.

Posted: October 30th, 2010, 2:45 pm
by Cpt.Psycho
What's the Save And Load Position Code? For CoD4.

Re: What's the Save And Load Position Code? For CoD4.

Posted: October 30th, 2010, 3:35 pm
by Moustache
Drofder created the script. He will tell it if he wants :)

But the very basic is something like this.

Code: Select all

if ( self UseButtonPressed() )
	old_origin = self.origin;

if ( self MeleeButtonPressed() )
	self SetOrigin( old_origin );

Re: What's the Save And Load Position Code? For CoD4.

Posted: October 30th, 2010, 4:30 pm
by Drofder2004
Moustache wrote:Drofder created the script. He will tell it if he wants :)
Save/Load code was created by Zeke (xXezekielXx) while he was doing a "screenshot" project. The basic code can be ripped from the CoD1 or 2 mods "_jumper_mod.gsc" (or something of similar name).

Re: What's the Save And Load Position Code? For CoD4.

Posted: October 30th, 2010, 5:26 pm
by Moustache
Fail @ me :oops: