Raised This Month: $51 Target: $400
 12% 

[L4D1&2] Spawn Alarmcars


Post New Thread Reply   
 
Thread Tools Display Modes
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 10-03-2010 , 21:17   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #11

Ok, i'm on it.
__________________
DieTeetasse is offline
war450
Member
Join Date: Apr 2006
Old 10-03-2010 , 21:53   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #12

i used this with the [L4D2] Explosive Cars v1.0.1c plugin and it seems to work except when the cars explode the glass tends to stay

Also, the cars can't seem to be hit by tanks maybe you can make cars physics objects with the glass and lights parented to the car?
war450 is offline
saldana
Junior Member
Join Date: Oct 2010
Old 10-04-2010 , 11:49   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #13

when the server change the campaign or the map ,the car do not show up ,why?

forgive my poor English..

and how to add other map in the cfg flie?

Quote:
"alarmcars"
{
"c1m2_streets"
{
"info"
{
"count" "7"
}
"data"
{
"1"
{
"position" "1498.104004 2780.024658 578.031250"
"angle" "0 131.807129 0"
"color" "255 255 255"
}
"2"
{
"position" "-2200.863281 2120.350342 0.031250"
"angle" "0 61.054562 0"
}
"3"
{
"position" "-4122.14 2287.39 64.03"
"angle" "0.00 93.57 0.00"
"color" "255 255 255"
}

"4"
{
"position" "-2728.41 2202.70 0.03"
"angle" "0.00 -105.99 0.00"
"color" "255 255 0"
}

"5"
{
"position" "-4373.32 755.87 190.03"
"angle" "0.00 115.23 0.00"
}

"6"
{
"position" "-8028.28 -1127.12 384.03"
"angle" "0.00 -66.03 0.00"
}

"7"
{
"position" "-7771.07 -4079.22 384.03"
"angle" "0.00 -38.51 0.00"
"color" "255 255 255"
}


}
}
}
Quote:
"alarmcars"
{
"c2m1_highway"
{
"info"
{
"count" "11"
}
"data"
{
"1"
{
"position" "9779.89 7897.22 -514.53"
"angle" "0.00 -177.53 0.00"
"color" "255 255 255"
}
"2"
{
"position" "9853.46 7770.07 -516.27"
"angle" "0.00 177.18 0.00"
"color" "255 255 255"
}
"3"
{
"position" "9346.12 7883.72 -515.73"
"angle" "0.00 178.70 0.00"
"color" "255 255 255"
}

"4"
{
"position" "7775.59 8056.04 -600.77"
"angle" "0.00 178.33 0.00"
}

"5"
{
"position" "3255.75 8241.29 -1007.96"
"angle" "0.00 -85.60 0.00"
}

"6"
{
"position" "2571.65 6948.69 -703.96"
"angle" "0.00 -63.86 0.00"
}

"7"
{
"position" "1278.52 5604.89 -967.96"
"angle" "0.00 97.27 0.00"
}

"8"
{
"position" "3396.93 3637.43 -1007.96"
"angle" "0.00 132.59 0.00"
}

"9"
{
"position" "1360.63 1292.84 -1801.80"
"angle" "0.00 166.05 0.00"
}

"10"
{
"position" "-1255.75 -2484.90 -1089.02"
"angle" "0.00 -2.94 0.00"
}

"11"
{
"position" "-801.21 -2086.31 -1087.15"
"angle" "0.00 -8.88 0.00"
}
}
}
}

Last edited by saldana; 10-04-2010 at 11:53.
saldana is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 10-04-2010 , 14:13   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #14

argh.. stop writing posts where we have to scroll pages and pages...
Wrap it with /CODE or PHP please!
Skorpion1976 is offline
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 10-04-2010 , 16:57   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #15

@saldana: The genereal stynax is:
PHP Code:
"alarmcars"
{
    
"c1m2_streets"
    
{
        
"info"
        
{
            
"count" "2" // count of cars of the map
        
}
        
"data"
        
{
            
"1" // just an identifier
            
{
                
"position" "1498.104004 2780.024658 578.031250" // necessary
                
"angle" "0 131.807129 0" // necessary
                
"color" "255 255 255" // optional color for the car
            
}
            
"2"
            
{
                
"position" "-2200.863281 2120.350342 0.031250"
                "angle" "0 61.054562 0"
            
}
        }
    }
    
"c1m3_mall"
     
{
        [
same again here...]
    }

You can look at the second post for a multi map config.

If the cars are not spawning, maybe you have sm_alarmcar_mapstart = 0?

@
war450:
The object should be parented, but it's not working correctly. I am searching for a way to parent them correctly at the moment.

@2befine:
I tested it on my server and the car showed up at the first map on the first round. Did it occurred again or maybe did you load/reload the plugin after the map started?
__________________
DieTeetasse is offline
saldana
Junior Member
Join Date: Oct 2010
Old 10-04-2010 , 22:53   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #16

When I reload the map again,all cars disappeared.
my server is run on realism mode.
saldana is offline
2befine
Junior Member
Join Date: Nov 2009
Old 10-05-2010 , 05:50   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #17

Quote:
Originally Posted by DieTeetasse View Post
I tested it on my server and the car showed up at the first map on the first round. Did it occurred again or maybe did you load/reload the plugin after the map started?
at the first round I have no cars
at the second round I got
Code:
[SM] 4 cars found!
[SM] spawning 0 car at 586.760009 4804.180175 16.030000 (0.000000,176.029998,0.000000 - 255 255 255)
[SM] Spawned alarm car at 586.76 4804.18 16.03 (0.00 176.02 0.00)
[SM] spawning 1 car at 1284.069946 1474.300048 8.029999 (0.000000,92.310005,0.000000 - 222 92 86)
[SM] Spawned alarm car at 1284.06 1474.30 8.02 (0.00 92.31 0.00)
[SM] spawning 2 car at 1051.489990 876.780029 8.029999 (0.000000,90.870002,0.000000 - 255 255 255)
[SM] Spawned alarm car at 1051.48 876.78 8.02 (0.00 90.87 0.00)
[SM] spawning 3 car at 2539.840087 4754.750000 8.029999 (0.000000,110.629997,0.000000 - 255 255 255)
[SM] Spawned alarm car at 2539.84 4754.75 8.02 (0.00 110.62 0.00)
this trouble only with first map (this cool because we are always start with surv team haha but why it happening..). reload plugin didn't help.
server ip at now (l4d1) 62.78.36.48:27015 or l4dpwned.dyndns.org
try to change level then connect to server, or just connect from lobby

Last edited by 2befine; 10-06-2010 at 10:13.
2befine is offline
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 10-08-2010 , 11:33   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #18

Updated to v1.0.3:
- fixed car not moving and glass/lights are parented to the car
- fixed no spawning cars at 1st round of versus and on mapchange
- added new commands for moving and rotating cars
- added new command to save current cars into the config (overriding previous cars of the map)

In plain english:
The car can now be hitted by tanks and flying around like normal car.
They should spawn at every map and every round.
I added some move and rotate functions for already spawned cars.
And i added a function to save some time, that will save all current cars on the map into the save file (deleting the previous setup for this map).

Next step (in my mind):
Converting existing cars into alarm cars and vice versa. I am trying to add the alarm to other car models like vans, trucks, etc.
__________________

Last edited by DieTeetasse; 10-08-2010 at 11:35.
DieTeetasse is offline
Cthulhu
Member
Join Date: Apr 2010
Old 10-08-2010 , 11:57   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #19

Quote:
Originally Posted by DieTeetasse View Post
Next step (in my mind):
Converting existing cars into alarm cars and vice versa. I am trying to add the alarm to other car models like vans, trucks, etc.
Waiting for that. Thanks ;-)
__________________
Cthulhu is offline
2befine
Junior Member
Join Date: Nov 2009
Old 10-09-2010 , 10:11   Re: [L4D1&2] Spawn Alarmcars
Reply With Quote #20

Thanks you! awesome plugin!
2befine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode