Ulysses Stuff > Suggestions

[Request] Spawn Vehicle Plugin

(1/2) > >>

PAL-18:
I'm no coder so i can't do this myself, but can anyone make this:

A command that when used (eg. !car) that spawns a vehicle for the player who uses it.  Just 1 vehicle should spawn and if they use it again, then their old vehicle is despawned and the new one replaces it.  There should also be a timeout of like 1 minute where they cant use it again (to prevent spamming).

P.S. I know this can be done in sandbox with the Gmod GUI, but im using a gamemode that doesnt allow spawning of props and such.

MrPresident:
What kind of vehicle?

PAL-18:
Airboat or jeep.  When its used again, it replaces the previously spawned vehicle.

Here's what the vehicle entities look like in text form:

{
"model" "models/buggy.mdl"
"origin" "0 0 0"
"VehicleLocked" "0"
"actionScale" "1"
"vehiclescript" "scripts/vehicles/jeep_test.txt"
"screenspacefade" "0"
"solid" "6"
"fadescale" "1"
"fademaxdist" "0"
"fademindist" "-1"
"maxdxlevel" "0"
"mindxlevel" "0"
"disableshadows" "0"
"skin" "0"
"angles" "0 0 0"
"classname" "prop_vehicle_jeep"
}

{
"model" "models/airboat.mdl"
"origin" "0 0 0"
"VehicleLocked" "0"
"actionScale" "1"
"vehiclescript" "scripts/vehicles/airboat.txt"
"screenspacefade" "0"
"solid" "6"
"fadescale" "1"
"fademaxdist" "0"
"fademindist" "-1"
"maxdxlevel" "0"
"mindxlevel" "0"
"disableshadows" "0"
"skin" "0"
"angles" "0 0 0"
"classname" "prop_vehicle_airboat"
}

MrPresident:
http://forums.ulyssesmod.net/index.php/topic,5961.0.html

PAL-18:
Hey Pres,

I was wondering you can make a variation of this plugin?  One that spawns a few types of npcs:

npc_headcrab_black
npc_metropolice
npc_stalker

Good short spawn names for the above would be:

!npc headcrab
!npc police
!npc stalker

Navigation

[0] Message Index

[#] Next page

Go to full version