Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GrandTheftAuto.net - Website Re-Launch

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

      1. Events
    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Andrew

Archived Requests, need ideas?

Recommended Posts

gajrajgchouhan

good topic

Share this post


Link to post
Share on other sites
FlushingLocal

I did. I searched the entire game code and the internet and can not find it.

Share this post


Link to post
Share on other sites
Rugz007

Btw I research and then ask

And you didn't looked in julios code :D (EVIL LAUGH)

Share this post


Link to post
Share on other sites
FlushingLocal

Thanks letsplayordy,

Also, I am looking for a 3rd modder who knows scripting like very good to help me with my mod, cause if I have 3 peopleon my team my mod can be released 3x faster.

PM me if you want to help me. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Jitnaught

Thanks letsplayordy,

Also, I am looking for a 3rd modder who knows scripting like very good to help me with my mod, cause if I have 3 peopleon my team my mod can be released 3x faster.

PM me if you want to help me. Any help would be greatly appreciated.

Well I'm not someone who teams up with people (because I can't promise I'll always be there to help), but if ever need any help (especially that you don't want to ask on the forum), just message me on Skype or Steam. My username on both of those is LetsPlayOrDy.

Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
FlushingLocal

 

Thanks letsplayordy,

Also, I am looking for a 3rd modder who knows scripting like very good to help me with my mod, cause if I have 3 peopleon my team my mod can be released 3x faster.

PM me if you want to help me. Any help would be greatly appreciated.

Well I'm not someone who teams up with people (because I can't promise I'll always be there to help), but if ever need any help (especially that you don't want to ask on the forum), just message me on Skype or Steam. My username on both of those is LetsPlayOrDy.

 

I know but i wasn't asking you specifically, but thanks!

Share this post


Link to post
Share on other sites
Jitnaught

I know, I'm just saying.

Share this post


Link to post
Share on other sites
FlushingLocal

I know, I'm just saying.

k sent you a request on skype

Share this post


Link to post
Share on other sites
Nikopol89

 

 

 

Is it possible for a recoil mod to be created?

The reticule and camera would shift up every time you fire.

I can't seem to get it to work. Maybe someone else can

 

InfamousSabre should be working on a recoil mod.

 

Correct.

Vertical and Horizontal recoil, with dampening.

I'm about to look into some issues with firing from cover, and there is a possibility it may get separated from AGS to be released by itself.

 

 

Nice!

 

No related topic found (except [iV|WIP] Silence!), any news? =)

Share this post


Link to post
Share on other sites
InfamousSabre

~snip~

 

Nice!

 

No related topic found (except [iV|WIP] Silence!), any news? =)

 

That's the right topic. No news about separation of the recoil part yet. Guess I'll do that tonight.

Edited by InfamousSabre

Share this post


Link to post
Share on other sites
FlushingLocal

Can Anyone improve this script?

 

public Vector2 CoordToScreen(Vector3 vect)

{
int Screen = 0;
GTA.Native.Pointer x = new GTA.Native.Pointer(typeof(float));
GTA.Native.Pointer y = new GTA.Native.Pointer(typeof(float));
Vector3 xpos = vect;
GTA.Native.Pointer ViewportId = new GTA.Native.Pointer(typeof(int));
GTA.Native.Function.Call("GET_GAME_VIEWPORT_ID", ViewportId);
Screen = ViewportId;
GTA.Native.Function.Call("GET_VIEWPORT_POSITION_OF_COORD", xpos.X, xpos.Y, xpos.Z, Screen, x, y);
return new Vector2(x,y);
}
public bool isCoordVisible(Vector3 WorldCoord, float AreaSize = 1f)
{
if(Game.Exists(Game.CurrentCamera))
{
return GTA.Native.Function.Call<bool>("CAM_IS_SPHERE_VISIBLE", Game.CurrentCamera, WorldCoord.X, WorldCoord.Y, WorldCoord.Z, AreaSize);
}
else{return false;}
}
Vector3 WorldPosition = X12,Y20
if( isCoordVisible( WorldPosition ) )
{
Vector2 ScreenPosition = CoordToScreen( WorldPosition );
e.Graphics.DrawRect( ScreenPosition.X, ScreenPosition.Y, 32, 32, System.Drawing.Color.White );
//or e.Graphics.DrawSprite
//or e.Graphics.DrawText

Share this post


Link to post
Share on other sites
Jitnaught

What's wrong with it?

Share this post


Link to post
Share on other sites
Noox

He wants it to be optimized maybe but it seems good to me.

One thing though, if you want to do inline stuff like

else{return false;}

don't use the brackets, if there is only one line of code after an if statement or a loop you can avoid them.

Share this post


Link to post
Share on other sites
leftas

Normalize the vector. But what is wrong with it ?

 

Best regards,

Paul.

Share this post


Link to post
Share on other sites
InfamousSabre

 

Can Anyone improve this script?

 

public Vector2 CoordToScreen(Vector3 vect)

{
int Screen = 0;
GTA.Native.Pointer x = new GTA.Native.Pointer(typeof(float));
GTA.Native.Pointer y = new GTA.Native.Pointer(typeof(float));
Vector3 xpos = vect;
GTA.Native.Pointer ViewportId = new GTA.Native.Pointer(typeof(int));
GTA.Native.Function.Call("GET_GAME_VIEWPORT_ID", ViewportId);
Screen = ViewportId;
GTA.Native.Function.Call("GET_VIEWPORT_POSITION_OF_COORD", xpos.X, xpos.Y, xpos.Z, Screen, x, y);
return new Vector2(x,y);
}
public bool isCoordVisible(Vector3 WorldCoord, float AreaSize = 1f)
{
if(Game.Exists(Game.CurrentCamera))
{
return GTA.Native.Function.Call<bool>("CAM_IS_SPHERE_VISIBLE", Game.CurrentCamera, WorldCoord.X, WorldCoord.Y, WorldCoord.Z, AreaSize);
}
else{return false;}
}
Vector3 WorldPosition = X12,Y20
if( isCoordVisible( WorldPosition ) )
{
Vector2 ScreenPosition = CoordToScreen( WorldPosition );
e.Graphics.DrawRect( ScreenPosition.X, ScreenPosition.Y, 32, 32, System.Drawing.Color.White );
//or e.Graphics.DrawSprite
//or e.Graphics.DrawText

 

Another Rugz clone...?

You don't have any clue what you're doing, do you?

 

Stop trying to make some huge mod as a beginner. Start small and learn.

  • Like 2

Share this post


Link to post
Share on other sites
FlushingLocal

I figured out the problem, in the rest of my script there was an if where there was suppose to be a bracket, and that made the road way point only spawn if I was in a mission.

 

And also, I know what I am doing. Stop comparing me to Rugz, because you haven't even seen my work yet. Do I not have the right to post questions? "Even Albert Enstien asked Questions and made mistakes"

  • Like 1

Share this post


Link to post
Share on other sites
Jitnaught

Albert Einstein didn't ask a forum what the Theory of Relativity was, he figured it out himself.

Not trying to start a fight, just stating a fact. Lets just get back on topic with GTA stuff :D

Edited by LetsPlayOrDy
  • Like 1

Share this post


Link to post
Share on other sites
FlushingLocal

Lmaoo. I was drinking water when I saw what letsplayordy wrote and I literally almost spilled water on the keyboard. But anyways, your right.

  • Like 1

Share this post


Link to post
Share on other sites
robertforyou

I want a mod for crosshairs. Like the GTA V HUD posted here (it's one crosshair for every weapon class/type), i want same mod, but without hud.

Share this post


Link to post
Share on other sites
ghozi_ak47

can anyone make a ped steal a abadoned car..?

for example; if cj or another ped leave his car the closest ped will steal that car..

can anyone make it? :/

Share this post


Link to post
Share on other sites
markusizr

i want lc map for vc please without bugs. and crashes

Share this post


Link to post
Share on other sites
RastaLulz

I need the Flight Suit from GTA V and I need it works for GTA SA. thx

Share this post


Link to post
Share on other sites
InfamousSabre

I figured out the problem, in the rest of my script there was an if where there was suppose to be a bracket, and that made the road way point only spawn if I was in a mission.

 

And also, I know what I am doing. Stop comparing me to Rugz, because you haven't even seen my work yet. Do I not have the right to post questions? "Even Albert Enstien asked Questions and made mistakes"

I saw the code you posted. Notice the big red text part, lol. Post questions all you want :p that's what the forum is for. But you literally asked if someone could improve a block of code with one big, bold, red, italicized issue, that I'm not sure how you could have missed. (an incomplete block of code, at that)

The only real way I see to improve the CoordToScreen methods would probably be to find a way to do isCoordVisible that doesn't break upon loading a save game using the pause menu. I didn't see loading a save game as a common, necessary thing to do in GTA, so I never went about fixing that.

Share this post


Link to post
Share on other sites
FlushingLocal

To be honest I really didn't see that incomplete line of code when I posted it. And I have to fix that save problem to.

Edited by Subway321
  • Like 1

Share this post


Link to post
Share on other sites
InfamousSabre

To be honest I really didn't see that incomplete line of code when I posted it. And I fix that save problem to.

Awesome :)

Care to share?

Share this post


Link to post
Share on other sites
FlushingLocal

Guys, I don't know what forum to post this in, but can anyone help me?

 

I'm trying to change the train code in the game to stop the train if there is a vehicle in front of it, like in watch Dogs, although I don't know where the code is. I think it's hard coded into the game, if I'm not mistaken, and is there any way to edit the train paths?

 

Thanks.

Share this post


Link to post
Share on other sites
InfamousSabre

Guys, I don't know what forum to post this in, but can anyone help me?

 

I'm trying to change the train code in the game to stop the train if there is a vehicle in front of it, like in watch Dogs, although I don't know where the code is. I think it's hard coded into the game, if I'm not mistaken, and is there any way to edit the train paths?

 

Thanks.

A train is a GTA.Vehicle. That should be enough info to get you on the right path.

Not sure why you want to edit their paths, since you would have to edit the track models as well.

Share this post


Link to post
Share on other sites
FlushingLocal

I don't think you understand. I'm trying to change the CODE of the train, not the model. And why I sm changing this is to add a 4 way intersection track to in the middle of Manhattan, plus changing the routes and possibly change the routes to go on the high line subway, but that would require fixing the broken ramp, and that'll be a pain...

Share this post


Link to post
Share on other sites
komandan

Maybe some Police Skin Pack?
Including the Ranks.

For example:
Tenpen - 265 is Police Officer I (With ranks)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.