WInts - Wolly's Interiors
#1

WInts - Wolly's Interiors

- Released on PawnoBox.net -
About:

This include, I wanted to create a long time but now I realize it even though despite the fact that I do not work in the pawn yet. This is an imitation of the original entry into the interior in the GTA.

Preview:


Video





How it works:

The principle is that the car is under the floor, I set up player objective through SetVehicleParamsForPlayer. Under the car is still object, to keep the car under the floor (anyway car is falling down, and down..). The player then sees only the yellow arrow, whereas only that protrudes from the ground and everything else is hidden under the floor.


Disadvantages:
  • yellow arrow is paler than the original
  • on the map are displayed annoying and unnecessary yellow icons
  • arrow disappears (and thus the icons on the map) at a greater distance because of the bug in SA:MP

Detail info:

This script I made haste, and therefore some things are not done professionally. During scripting, I encountered a few bugs, and therefore objects to remake some things differently, I just fix them and go further.

The arrow above the car can not be switched off by SetVehicleParamsForPlayer. Luckily, in 0.3 is streaming of and turns off itself as soon as the car is streamed out. Unfortunately, this is dependent on the settings of streaming distance in the config.

Include streams objects under car for each player separately. Defined max. number of objects.
Include contains a script for effective cut off San Andreas to a number of areas (every value is definable) and the stream of cars only in areas where at least some players, rather in close of areas. Currently, there is set 100 meters. This means that if a player is close to 100 meters of a zone, the zone will be marked as active. It is therefore, to avoid the situation when you stand on the edge of some zone and interior entry is created on the edge of neighboring zone. Although you are only a few meters from entry but not directly in the zone and therefore it don't appears. It is important that the number of zones is not too high so the cycle too onerous. Currently it is cut off to 6 Ч 6 (36 zones), each with a width of 1000 meters plus 100 meters around the "active zone".

As a compromise I recommend to set stream_distance in the server.cfg to 200.0!

The original entries into the interior in SA: MP is shown around at a distance of 40 meters. WInts is set to 50 meters, of course it's possible to change.

Fading screen I have used Seifader from Seif, as it is scripted quite easily and I did not want to deal with other shit that would only stretch time release.

Don't fear of increase the size of compiled file. This is due to the large number of transformations. Eg. MidoStream FS is compiled about 2 megabytes big.

Do not create interiors for some uneven places because the car will stand out on the ground.


Installation and using:

Instalation into your gamemode:

put #include <wints> below #include <a_samp>
Wints_Init(); put into OnGameModeInit public
Wints_Exit(); put into OnGameModeExit public
Wints_OnPlayerConnect(playerid); put into OnPlayerConnect public
Wints_OnPlayerDisconnect(playerid, reason); put into OnPlayerDisconnect public
Wints_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid); put into OnPlayerInteriorChange
public
put the include file into pawno/include folder

Using the function:

Код:
CreateWInterior(Float:arrowX,Float:arrowY,Float:arrowZ,arrowInterior,Float:targetX,Float:targetY,Float:targetZ,Float:targetAngle,targetInterior);
arrowX, arrowY, arrowZ - coordinates where it will be displayed arrow (just save over /save command, beware!, you should not be saving the position when you are beeing in the vehicle because the arrow will be lower and will cross the floor)
arrowInterior - id of interior where it will be placed arrow (if you place the arrow in any building, for check the current interior use command /interior)
targetX, targetY, targetZ - position where it will spawn a player after entering into the arrow
targetAngle - facing agle of the player on the position the player will be moved
targetInterior - id of the interior where the player will be moved


For example:
Код:
CreateWInterior(2127.5737,2379.4404,10.8203,0,246.3751,109.2462,1003.2188,0.0000,10);
means that the arrow is in position 2127.5737,2379.4404,10.8203 in interior 0 (outside), and entering the player moved to the position 246.3751,109.2462,1003.2188 player with facing angle 0.000000 into the interior 10.

Function CreateWInterior put into the public OnGameModeInit.


Credits:
  • Seif - Seifader - his Seifader script (fading screen)
  • Luk_Ass - some help with scripting
  • SpiriX23 - help with testing and providing the server
  • CorteZz - creating of the demo video
  • denis1999 (matej) - help with testing

Conclusion:

I hope that someone makes better and more efficient script like this.
I'm sorry for any spelling mistakes, I hope you all important things.

Some screens from testing:



Actual verison 1.02:

1.00 - release
1.01 - some small corrections to prevent potential bugs
1.02 - fixed bug with checking of player's and WInterior's interior

Download:

PASTEBIN

Reply
#2

ohhhh wolly this is very best
all samp scripers use you interierors
11/10
(matej)
Reply
#3

Amazing! Thanks!
Reply
#4

Very creative, thanks.
Reply
#5

In SA:MP 0.1 SetVehicleParamsForPlayer conflicted with SetPlayerCheckpoint. After a certain amount of vehicles showed the objective it didn't show SetPlayerCheckpoint anymore. If I remember it correctly the limit was 36 vehicle objectives. With the built in SA:MP streamer it's not very likely users will reach this limit. I'm not entirely sure if this bug still exists but it seems to be a GTA SA bug. It might be worth mentioning...

Pretty nice job on recreating the GTA SA teleport system.
Reply
#6

thanks for the praise

Quote:
Originally Posted by Tr1viUm
Посмотреть сообщение
In SA:MP 0.1 SetVehicleParamsForPlayer conflicted with SetPlayerCheckpoint. After a certain amount of vehicles showed the objective it didn't show SetPlayerCheckpoint anymore. If I remember it correctly the limit was 36 vehicle objectives. With the built in SA:MP streamer it's not very likely users will reach this limit. I'm not entirely sure if this bug still exists but it seems to be a GTA SA bug. It might be worth mentioning...

Pretty nice job on recreating the GTA SA teleport system.
The number of max viewed playerobjectives (WInteriors) at once in WInts is set to 50
see here

(..but I don't have all 50 playerobjectives at one screen)

we have tested it and I can't say that we have had some problems with viewing of these yellow arrows, but I have no much experience with that, also I don't know if the checkpoint will be displayed, but I will test it later and let you know ..or somebody else can test it because I have no installed GTA SA currently
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)