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

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
Cpt.Psycho
CJ Wannabe
CJ Wannabe
Posts: 1
Joined: October 30th, 2010, 2:14 pm
PSN ID: sharp-shooter12

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

Post by Cpt.Psycho » October 30th, 2010, 2:45 pm

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

Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

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

Post by Moustache » October 30th, 2010, 3:35 pm

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 );

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

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

Post by Drofder2004 » October 30th, 2010, 4:30 pm

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).
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

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

Post by Moustache » October 30th, 2010, 5:26 pm

Fail @ me :oops:

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests