IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 isolating a code.

 
Mokrie Dela  
Posted: Wednesday, Jul 25 2012, 15:12
Quote Post


МОКРЫЕДЕЛA
Group Icon
Group: Members
Joined: May 1, 2009

ja.gif

Member Award




I've made a request in the request thread asking someone to make the following for me, but I would also like to know HOW to do it too, so i am making this topic in the hope someone can show me the code i need to cut...

http://www.gtainside.com/en/download.php?do=download&id=543

The mod posted above, is a simple "press button to slow down game" mod. Not "neo" style adrenaline pill spawn, but "change game speed" one.

Now i have Spacenstein's excellent compilation "All in one" mod, and have already made progress into the game and i want the above linked mod to become a cleo script. I found a tutorial on how to make a cleo script, but looking through the download's RAR file's MAIN.SCM/.TXT, i can not find the code that makes the mod work, and my knowlege of scripting isnt enough to use the enclosed "source" file.

So can someone take a look in the files linked in the RAR and post via code tags, the code that makes the mod work so i can A, see what is it and B put it into a cleo mod.


I had edited this mod YEARS ago to change the button presses, but this time round i can't find it!

edit: after trying, i have no idea how to convert this to a cleo script, so im thinking this topic may be pointless, and the smarter idea would be to leave the request open

This post has been edited by Mokrie Dela on Wednesday, Jul 25 2012, 15:20
PM
  Top
 

 
arijitsen  
Posted: Wednesday, Jul 25 2012, 16:05
Quote Post


Modder,Gamer & GFX Artist
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



You mean to slow the time like in Max payne ??
Users WebsitePM
  Top
 

 
Deji  
Posted: Wednesday, Jul 25 2012, 17:20
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Users WebsitePM
  Top
 

 
Mokrie Dela  
Posted: Thursday, Jul 26 2012, 09:34
Quote Post


МОКРЫЕДЕЛA
Group Icon
Group: Members
Joined: May 1, 2009

ja.gif

Member Award




QUOTE (Deji @ Wednesday, Jul 25 2012, 17:20)
http://hotmist.ddo.jp/cleomod/stop/index.html

I think i failed to say this is for Vice City, not San Andreas.
PM
  Top
 

 
Link2012  
Posted: Thursday, Jul 26 2012, 15:46
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



CODE
{$CLEO}

const
   KEY_TO_ACTIVATE = 0x0   // Put here the VKey to activate the mod
   SLOW_GAME_SPEED = 0.3   // Put here the speed of the game when in slow down [0.0 ~ 1.0]
end

0@ = false  // Slow down is off

while true
   wait 0
   if 05EE:  key_pressed KEY_TO_ACTIVATE
   then
       
       if 0@ == false
       then
           015D: set_gamespeed SLOW_GAME_SPEED
           0@ = true
       else
           015D: set_gamespeed 1.0
           0@ = false
       end

   end
end


EDIT:
@Deji (Post below)
Oh yes, I didn't noticed that...


This post has been edited by Link2012 on Friday, Jul 27 2012, 03:40
PMMSN
  Top
 

 
Deji  
Posted: Thursday, Jul 26 2012, 20:36
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Since he wanted Bullet Time, that only does half the job. Next it'd be necessary to speed up the player movement, which is why I posted a link to Ryosuke's mod. It may not be compatible with VC, but a lot of the code inside sure is, and that's all you really need.
Users WebsitePM
  Top
 

 
Mokrie Dela  
Posted: Thursday, Jul 26 2012, 23:40
Quote Post


МОКРЫЕДЕЛA
Group Icon
Group: Members
Joined: May 1, 2009

ja.gif

Member Award




Problem is my knowledge of coding was very rudimentary and I hadn't done any for years, so I'm all at sea trying to convert a code. My attempt was a failure
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG