Post: Bunker + teleport flags [1.18/source]
07-08-2014, 03:11 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
You must login or register to view this content.
I decided to make a bunker today then I realized I couldn't reach the thing so I made some teleport flags. Happy I thought that maybe some of you may want to see how I did it so enjoy the source Smile

Update:
So I was running into an issue so after about 5 hours and a little bit of math I came up with a function that would calculate the radius of a circle and if some on is in it Smile fixed the radius error Happy
     
public bool in_circle(int center_x, int center_y, int radius, int x, int y)
{
int dist = ((center_x - x) * (center_x - x)) + ((center_y - y) * (center_y - y));
if (dist < (radius * radius))
{
return true;
}
else if (dist > (radius * radius))
{
return false;
}
else
{
return false;
}
}

an example for the teleport flags is:
    
if (in_circle(18, 4409, 25, X, Y) == true)
{
RPC.iPrintln(-1, "You're in the radius!");
}

Enjoy Happy
Video:

Source:
Download:
You must login or register to view this content.
Tool:
Download:
You must login or register to view this content.
Virus Scan:
[url]https://www.virustotal.com/en/file/3e8f1fbadd76b14617ec9f86f22d5d2e8576a6830d6ae366ee 029ed552a0259e/analysis/1404788821/[/url]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 31 users say thank you to OLDSCHOOLMODZHD for this useful post:

ᅟᅟᅟᅟᅟᅟᅟᅟᅟᅟᅟᅟ, RawDog2002, ALI ALHILFI, ARABIC_GUY, B777x, codybenti, D3sKmَ, Drop_, En3RGyMoDz, Esker, Geo, hibye3, iMoDz-Baptiste, ImPiffHD, Jaredm09, kainer wainer, LaRip8, Lim-its, ll-TheUpdater-l, Mango_Knife, MilkShakeModz, moxl, RTE, SC58, Shark, UnknownNightmare, Laser, Hash847, zRayz-
07-08-2014, 05:59 AM #2
Mango_Knife
In my man cave
Sweet :yes:

The following 2 users say thank you to Mango_Knife for this useful post:

ALI ALHILFI, OLDSCHOOLMODZHD
07-08-2014, 06:13 AM #3
SC58
Former Staff
Originally posted by OLDSCHOOLMODZHD View Post
You must login or register to view this content.
I decided to make a bunker today then I realized I couldn't reach the thing so I made some teleport flags. Happy I thought that maybe some of you may want to see how I did it so enjoy the source Smile

Video:

Source:
Download:
You must login or register to view this content.
Tool:
Download:
You must login or register to view this content.
Virus Scan:
[url]https://www.virustotal.com/en/file/3e8f1fbadd76b14617ec9f86f22d5d2e8576a6830d6ae366ee 029ed552a0259e/analysis/1404788821/[/url]


Very nice m8 Winky Winky

It would be very simple to make a Zombie land like back on MW2 and Cod4 days

The following 2 users say thank you to SC58 for this useful post:

FusionIsDaName, OLDSCHOOLMODZHD
07-08-2014, 11:22 AM #4
Hash847
Purple God
This would be interesting to see if anyone is bothered to make a full Zombie Land like it was back in MW2 with this. I was thinking of doing it my self, But there were a few complications and got lazy

The following user thanked Hash847 for this useful post:

OLDSCHOOLMODZHD
07-08-2014, 01:36 PM #5
Originally posted by Winter View Post
This would be interesting to see if anyone is bothered to make a full Zombie Land like it was back in MW2 with this. I was thinking of doing it my self, But there were a few complications and got lazy

I'm working on it right now Smile

The following user thanked OLDSCHOOLMODZHD for this useful post:

Hash847
07-08-2014, 03:21 PM #6
xDebugKiller
Climbing up the ladder
looks nice man :yes:
07-08-2014, 06:02 PM #7
Originally posted by xDebugKiller View Post
looks nice man :yes:

Thanks <3

The following user thanked OLDSCHOOLMODZHD for this useful post:

xDebugKiller
07-08-2014, 07:23 PM #8
Esker
Samurai Poster
great shit man
07-09-2014, 01:21 AM #9
Updated and fixed the issues with the detection of the player being near the flag enjoy Happy
07-09-2014, 12:37 PM #10
YOUR MOM HOE
Bounty hunter
what your skype

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo